Makefile.old 664 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. LIBRARIES = libb64.a
  2. # Build flags (uncomment one)
  3. #############################
  4. # Release build flags
  5. CFLAGS += -O3
  6. #############################
  7. # Debug build flags
  8. #CFLAGS += -g
  9. #############################
  10. SOURCES = cdecode.c cencode.c
  11. TARGETS = $(LIBRARIES)
  12. LINK.o = gcc
  13. CFLAGS += -Werror -pedantic
  14. CFLAGS += -I../include
  15. vpath %.h ../include/b64
  16. .PHONY : clean
  17. all: $(TARGETS) #strip
  18. libb64.a: cencode.o cdecode.o
  19. $(AR) $(ARFLAGS) $@ $^
  20. strip:
  21. strip $(BINARIES) *.exe
  22. clean:
  23. rm -f *.exe* *.o $(TARGETS) *.bak *~
  24. distclean: clean
  25. rm -f depend
  26. depend: $(SOURCES)
  27. makedepend -f- $(CFLAGS) $(SOURCES) 2> /dev/null 1> depend
  28. -include depend