1234567891011121314151617181920212223242526 |
- CPPFLAGS=-Wall -Wno-misleading-indentation -Werror --std=c++1z -O3 -flto
- LDFLAGS=
- INCLUDES=-I../pge/include
- EXECUTABLE=packer
- LIBRARIES=
- ifeq ($(OS),Windows_NT)
- EXECUTABLE+=.exe
- CPP=i686-w64-mingw32-g++
- CC=i686-w64-mingw32-gcc
- else
- CC=gcc
- CPP=g++
- endif
- SOURCES=packer.cpp ../pge/src/olcPGE_ResourcePack.cpp
- OBJECTS=$(SOURCES:.cpp=.o)
-
- all: $(SOURCES) $(EXECUTABLE)
-
- clean:
- $(RM) $(OBJECTS) $(EXECUTABLE)
-
- $(EXECUTABLE): $(OBJECTS)
- $(CPP) $(LDFLAGS) $(OBJECTS) -o $@ $(LIBRARIES)
-
- .cpp.o:
- $(CPP) $(INCLUDES) -c $(CPPFLAGS) $< -o $@
|