2021-09-29 22:44:00 +00:00
|
|
|
###############################################################################
|
|
|
|
# Tyler Perkins
|
|
|
|
# 9-23-21
|
|
|
|
# Makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
|
|
|
|
FLAGS = -pipe
|
|
|
|
|
|
|
|
CFLAGS = -Wall
|
2021-09-30 02:31:00 +00:00
|
|
|
CFLAGS += -O2
|
2021-09-29 22:44:00 +00:00
|
|
|
#CFLAGS += -g
|
|
|
|
#CFLAGS += -pg
|
|
|
|
|
|
|
|
LIBRARIES =
|
|
|
|
|
|
|
|
SRC = $(shell find ./src -name '*.c')
|
|
|
|
OBJ = $(subst .c,.o,$(SRC))
|
|
|
|
BIN = ./bin
|
|
|
|
|
|
|
|
PREFIX = /usr/local
|
|
|
|
MANPREFIX = $(PREFIX)/share/man
|
|
|
|
|
|
|
|
TARGET = markov-music
|
|
|
|
|
|
|
|
MAKEFLAGS += --jobs=4
|
|
|
|
|
|
|
|
all : $(OBJ)
|
|
|
|
@echo LD $@
|
|
|
|
@$(CC) $(FLAGS) $(CFLAGS) -o $(BIN)/$(TARGET) $(OBJ) $(LIBRARIES)
|
|
|
|
|
|
|
|
.c.o :
|
|
|
|
@echo CC $<
|
|
|
|
@$(CC) $(FLAGS) $(CFLAGS) $(LIBRARIES) $(DEFINITIONS) -c $< -o $@
|
|
|
|
|
|
|
|
install : all
|
|
|
|
|
|
|
|
uninstall :
|
|
|
|
|
|
|
|
clean :
|
|
|
|
find . -type f -name '*.o' -delete
|
|
|
|
rm -rf $(BIN)/*
|