Няма описание
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.

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