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

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. # Compiler Specific:
  2. COMP=gcc
  3. CFLAG=-c
  4. WFLAG=-Wall
  5. OFLAG=-o
  6. testnum=0
  7. # Program Specific:
  8. SOURCES= main.c \
  9. dbpbe.c
  10. OBJECTS=$(SOURCES:.c=.o)
  11. HEADERS=$(SOURCES:.c=.h)
  12. EXECUTABLE=DBPBE
  13. # Start of Make:
  14. Start: clean $(SOURCES) $(EXECUTABLE)
  15. $(EXECUTABLE): $(OBJECTS)
  16. $(COMP) $(OBJECTS) -lm $(OFLAG) $@ $(WFLAG)
  17. .c.o:
  18. $(COMP) -D MODE=$(testnum) $(CFLAG) $< $(OFLAG) $@ $(WFLAG)
  19. # Cleanup Routines:
  20. clean:
  21. rm -f $(OBJECTS) $(EXECUTABLE)
  22. # # Packaging
  23. # tar:
  24. # tar -cf $(EXECUTABLE).tar *.c *.h