Ingen beskrivning
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 542B

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