From 0d4345a9bf2623df079c50a3bc73cbb7deca1176 Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Wed, 17 Jul 2019 11:30:07 +0800 Subject: Added C++ support, updated build instructions and makefiles, consolidated libc and libgcc (during build process), libraries now v0.12b and more --- tools/smxlink/makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/smxlink/makefile b/tools/smxlink/makefile index b50fd26..ff759b1 100644 --- a/tools/smxlink/makefile +++ b/tools/smxlink/makefile @@ -4,6 +4,8 @@ CPPFILES = main.cpp timreader.cpp CFLAGS = -O2 LDFLAGS = -s +INCLUDE = +LIBDIRS = LIBS = -ltinyxml2 CC = gcc @@ -13,9 +15,10 @@ OFILES = $(addprefix build/,$(CPPFILES:.cpp=.o)) ifeq "$(OS)" "Windows_NT" -# Config for Windows +# Config for Windows (comment out if in msys2) INCLUDE = -I/c/tinyxml2 LIBDIRS = -L/c/tinyxml2 + TARGET := $(TARGET).exe else -- cgit v1.2.3