You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

262 lines
2.1 KiB

# Compiler Specific:
COMP=gcc
CFLAG=-c
WFLAG=-Wall
OFLAG=-o
testnum=0
# Program Specific:
SOURCES= main.c \
dbpbe.c
OBJECTS=$(SOURCES:.c=.o)
HEADERS=$(SOURCES:.c=.h)
EXECUTABLE=DBPBE
# Start of Make:
Start: clean $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(COMP) $(OBJECTS) -lm $(OFLAG) $@ $(WFLAG)
.c.o:
$(COMP) -D MODE=$(testnum) $(CFLAG) $< $(OFLAG) $@ $(WFLAG)
# Cleanup Routines:
clean:
rm -f $(OBJECTS) $(EXECUTABLE)
# # Packaging
# tar:
# tar -cf $(EXECUTABLE).tar *.c *.h