diff options
| author | John "Lameguy" Wilbert Villamor <lameguy64@gmail.com> | 2021-10-15 09:22:45 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-15 09:22:45 +0800 |
| commit | dd0f088aaa4c6bf013643be2d1d8621dbffdb000 (patch) | |
| tree | d848d6ce007d8bb9357c8b99d6a0a39ec41d244e /tools/lzpack/makefile | |
| parent | 9e08d1047fa8deeb3ccb3ce9bb11d69e25a52d56 (diff) | |
| parent | eb719a424e6a16fb64209139a32c9f8a7235a929 (diff) | |
| download | psn00bsdk-dd0f088aaa4c6bf013643be2d1d8621dbffdb000.tar.gz | |
Merge pull request #38 from spicyjpeg/cmake
Full CMake support (in place of makefiles)
Diffstat (limited to 'tools/lzpack/makefile')
| -rw-r--r-- | tools/lzpack/makefile | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/tools/lzpack/makefile b/tools/lzpack/makefile deleted file mode 100644 index e11f5c7..0000000 --- a/tools/lzpack/makefile +++ /dev/null @@ -1,46 +0,0 @@ -TARGET := lzpack - -CPPFILES = main.cpp filelist.cpp -CFLAGS = -O2 -LDFLAGS = -s - -LIBS = -ltinyxml2 -llzp - -CC = gcc -CXX = g++ - -OFILES = $(addprefix build/,$(CPPFILES:.cpp=.o)) - -ifeq "$(OS)" "Windows_NT" - -# Config for Windows -INCLUDE = -I/c/tinyxml2 -LIBDIRS = -L/c/tinyxml2 -TARGET := $(TARGET).exe - -else - -# Config for anything else that isn't Linux - -endif - -INCLUDE += -I../../libpsn00b -LIBDIRS += -Llzp - -build/%.o: %.cpp - @mkdir -p $(dir $@) - $(CXX) $(CFLAGS) $(INCLUDE) -c $< -o $@ - -all: $(OFILES) - $(MAKE) -C lzp - $(CXX) $(CFLAGS) $(LDFLAGS) $(LIBDIRS) $(OFILES) $(LIBS) -o $(TARGET) - -install: - mkdir -p ../bin - cp $(TARGET) ../bin/$(TARGET) - -clean: - $(MAKE) -C lzp clean - rm -Rf build $(TARGET) - -cleanall: clean |
