Makefile 752 B

12345678910111213141516171819202122232425262728293031323334
  1. ROOTDIR = $(CURDIR)/..
  2. MAKEFILESDIR = $(ROOTDIR)/makefiles
  3. include $(MAKEFILESDIR)/config.mk
  4. TARGET = tests
  5. target = tests
  6. SUBDIRS = src src/constants src/network/atom
  7. all: .resources
  8. @for subdir in $(SUBDIRS); do \
  9. if ! $(MAKE) -C $$subdir -f $(MAKEFILESDIR)/subdir.mk CFLAGS="$(CFLAGS) -fexceptions"; then \
  10. exit 1; \
  11. fi; \
  12. done;
  13. @echo -n "Linking $(TARGET) ..."
  14. @$(LD) $(LDFLAGS) -o $(TARGET) `find -L src -name *.o` -L$(LIBDIR) -lzlcore -lzltext -lz -lsqlite3
  15. @echo " OK"
  16. clean:
  17. @for subdir in $(SUBDIRS); do \
  18. $(MAKE) -C $$subdir -f $(MAKEFILESDIR)/subdir.mk clean; \
  19. done;
  20. @$(RM) $(TARGET) err* tmp*
  21. @$(RM) *.log gmon*
  22. @$(RM) `find -L -name '*~'`
  23. @$(RM) `find -L -name '*.o'`
  24. @$(RM) `find -L -name '*.d'`
  25. do_install: