44 lines
671 B
Makefile
44 lines
671 B
Makefile
###############################################################################
|
|
# Tyler Perkins
|
|
# 9-23-21
|
|
# Makefile
|
|
#
|
|
|
|
CC = gcc
|
|
|
|
FLAGS = -pipe
|
|
|
|
CFLAGS = -Wall
|
|
CFLAGS += -O2
|
|
#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)/*
|