Makefile 510 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. INCLUDES=
  2. CC=gcc
  3. CFLAGS=$(INCLUDES) -std=gnu11 -g -DLINUX \
  4. -Werror=implicit-function-declaration \
  5. -Werror=incompatible-pointer-types
  6. SOURCES=main.c \
  7. c3dlas.c \
  8. ds.c \
  9. dumpImage.c \
  10. hash.c \
  11. MurmurHash3.c \
  12. texture.c \
  13. textureAtlas.c
  14. LIBS=-lpng -lm -pthread
  15. OBJS = $(SOURCES:.c=.o)
  16. all: atlasgen
  17. .c.o:
  18. $(CC) $(CFLAGS) -o $@ -c $<
  19. atlasgen: $(OBJS)
  20. $(CC) $(CFLAGS) $(LIBS) -o $@ $^
  21. clean:
  22. $(RM) *.o atlasgen
  23. # .PHONY: clean
  24. # clean:
  25. # rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~