Makefile 351 B

123456789101112131415161718192021222324252627
  1. TESTS=test-base64
  2. all: $(TESTS)
  3. ifndef CC
  4. CC=gcc
  5. endif
  6. ifndef LDO
  7. LDO=$(CC)
  8. endif
  9. ifndef CFLAGS
  10. CFLAGS = -MMD -O2 -Wall -g
  11. endif
  12. CFLAGS += -I../src
  13. BASE64_OBJS=test-base64.o ../src/utils/base64.o ../src/utils/os_unix.o
  14. test-base64: $(BASE64_OBJS)
  15. $(LDO) $(LDFLAGS) -o $@ $(BASE64_OBJS)
  16. clean:
  17. $(MAKE) -C ../src clean
  18. rm -f $(TESTS) *~ *.o