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/smxlink | |
| 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/smxlink')
| -rw-r--r-- | tools/smxlink/main.cpp | 4 | ||||
| -rw-r--r-- | tools/smxlink/makefile | 45 | ||||
| -rw-r--r-- | tools/smxlink/timreader.cpp | 4 |
3 files changed, 8 insertions, 45 deletions
diff --git a/tools/smxlink/main.cpp b/tools/smxlink/main.cpp index 8072274..d58f36a 100644 --- a/tools/smxlink/main.cpp +++ b/tools/smxlink/main.cpp @@ -15,6 +15,10 @@ //#include <windef.h> #include "timreader.h" +#ifdef WIN32 +#define strcasecmp _stricmp +#endif + #define VERSION "0.25b" namespace param diff --git a/tools/smxlink/makefile b/tools/smxlink/makefile deleted file mode 100644 index ff759b1..0000000 --- a/tools/smxlink/makefile +++ /dev/null @@ -1,45 +0,0 @@ -TARGET := smxlink - -CPPFILES = main.cpp timreader.cpp -CFLAGS = -O2 -LDFLAGS = -s - -INCLUDE = -LIBDIRS = -LIBS = -ltinyxml2 - -CC = gcc -CXX = g++ - -OFILES = $(addprefix build/,$(CPPFILES:.cpp=.o)) - -ifeq "$(OS)" "Windows_NT" - -# Config for Windows (comment out if in msys2) -INCLUDE = -I/c/tinyxml2 -LIBDIRS = -L/c/tinyxml2 - -TARGET := $(TARGET).exe - -else - -# Config for anything else that isn't Windows -EXE_SUFFIX = - -endif - -build/%.o: %.cpp - @mkdir -p $(dir $@) - $(CXX) $(CFLAGS) $(INCLUDE) -c $< -o $@ - -all: $(OFILES) - $(CXX) $(CFLAGS) $(LDFLAGS) $(LIBDIRS) $(OFILES) $(LIBS) -o $(TARGET) - -install: - mkdir -p ../bin - cp $(TARGET) ../bin/$(TARGET) - -clean: - rm -Rf build $(TARGET) - -cleanall: clean diff --git a/tools/smxlink/timreader.cpp b/tools/smxlink/timreader.cpp index a8fba94..5116f52 100644 --- a/tools/smxlink/timreader.cpp +++ b/tools/smxlink/timreader.cpp @@ -2,6 +2,10 @@ #include <string.h> #include "timreader.h" +#ifdef WIN32 +#define strcasecmp _stricmp +#endif + int GetTimCoords(const char* fileName, TIM_COORDS *coords) { FILE* fp = fopen(fileName, "rb"); |
