Açıklama Yok
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.

Makefile 736B

1234567891011121314151617181920212223242526272829303132
  1. CPPFLAGS=-Wall -Wno-misleading-indentation -Werror --std=c++1z
  2. LDFLAGS=
  3. INCLUDES=-I../pge/include
  4. ifeq ($(OS),Windows_NT)
  5. LIBRARIES=-luser32 -lgdi32 -lgdiplus
  6. EXECUTABLE=packer.exe
  7. CPP=i686-w64-mingw32-g++
  8. CC=i686-w64-mingw32-gcc
  9. else
  10. EXECUTABLE=packer
  11. LIBRARIES=-lpng
  12. CC=gcc
  13. CPP=g++
  14. endif
  15. ifeq ($(DEBUG),1)
  16. CPPFLAGS+=-g -Og
  17. else
  18. CPPFLAGS+=-flto -O3
  19. endif
  20. SOURCES=packer.cpp ../pge/src/olcPGE_ResourcePack.cpp ../pge/src/olcPGE_Sprite.cpp ../pge/src/olcPGE_Pixel.cpp ../pge/src/olcPGE_Common.cpp
  21. OBJECTS=$(SOURCES:.cpp=.o)
  22. all: $(SOURCES) $(EXECUTABLE)
  23. clean:
  24. $(RM) $(OBJECTS) $(EXECUTABLE)
  25. $(EXECUTABLE): $(OBJECTS)
  26. $(CPP) $(LDFLAGS) $(OBJECTS) -o $@ $(LIBRARIES)
  27. .cpp.o:
  28. $(CPP) $(INCLUDES) -c $(CPPFLAGS) $< -o $@