From 8b7215b7f63bbb4312c122c03c1ddf8494a3b32f Mon Sep 17 00:00:00 2001 From: Seppi Date: Mon, 30 Oct 2017 18:39:26 -0500 Subject: [PATCH 1/2] Added flags from #352 (Compiles on Ubuntu 16.04.3 LTS) --- makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 51baaa90b..9b9292ef7 100644 --- a/makefile +++ b/makefile @@ -145,7 +145,7 @@ bin/run.o: src/run.c $(TIC80_H) $(TIC_H) $(CC) $< $(OPT) $(INCLUDES) -c -o $@ bin/file_dialog.o: src/ext/file_dialog.c $(TIC80_H) $(TIC_H) - $(CC) $< $(OPT) $(INCLUDES) -c -o $@ + $(CC) $< $(OPT) $(INCLUDES) $(LINUX_INCLUDES) -c -o $@ bin/md5.o: src/ext/md5.c $(TIC80_H) $(TIC_H) $(CC) $< $(OPT) $(INCLUDES) -c -o $@ @@ -250,10 +250,10 @@ bin/jsapi.o: src/jsapi.c $(TIC80_H) $(CC) $< $(OPT) $(INCLUDES) -c -o $@ bin/luaapi.o: src/luaapi.c $(TIC80_H) - $(CC) $< $(OPT) $(INCLUDES) -c -o $@ + $(CC) $< $(OPT) -fPIC $(INCLUDES) -c -o $@ bin/duktape.o: src/ext/duktape/duktape.c $(TIC80_H) - $(CC) $< $(OPT) $(INCLUDES) -c -o $@ + $(CC) $< $(OPT) -fPIC $(INCLUDES) -c -o $@ TIC80_SRC = src/tic80.c src/tic.c src/ext/blip_buf.c src/jsapi.c src/luaapi.c src/ext/duktape/duktape.c TIC80_O = bin/tic80.o bin/tic.o bin/tools.o bin/blip_buf.o bin/jsapi.o bin/luaapi.o bin/duktape.o bin/gif.o From bb01be5c5d418eab8c4d2a1a38a1fb9a69bb878f Mon Sep 17 00:00:00 2001 From: Seppi Date: Mon, 30 Oct 2017 18:40:06 -0500 Subject: [PATCH 2/2] Changing makefile to Makefile as per GNU Make suggestion --- makefile => Makefile | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename makefile => Makefile (100%) diff --git a/makefile b/Makefile similarity index 100% rename from makefile rename to Makefile