forth/Makefile
2021-09-23 21:25:42 -04:00

44 lines
666 B
Makefile

###############################################################################
# Tyler Perkins
# 9-23-21
# Makefile
#
CC = gcc
FLAGS = -pipe
CFLAGS = -Wall
CFLAGS += -Ofast
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 = forth
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)/*