aboutsummaryrefslogtreecommitdiff
path: root/tools/smxlink
diff options
context:
space:
mode:
Diffstat (limited to 'tools/smxlink')
-rw-r--r--tools/smxlink/main.cpp4
-rw-r--r--tools/smxlink/makefile45
-rw-r--r--tools/smxlink/timreader.cpp4
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");