BlipBuf moved to 3rd-party

This commit is contained in:
BADIM-PC\Vadim
2018-01-10 17:11:22 +03:00
parent cb4c0a22d4
commit 94e949e85e
10 changed files with 31 additions and 445 deletions

View File

@@ -5,6 +5,7 @@ BIN_NAME= bin/tic80
3RD_PARTY = ../3rd-party
DUKTAPE_LIB = $(3RD_PARTY)/duktape-2.2.0/src
BLIPBUF_LIB = $(3RD_PARTY)/blip-buf
PRE_BUILT = $(3RD_PARTY)/pre-built
RM= rm -f
@@ -14,6 +15,7 @@ INCLUDES= \
-I$(3RD_PARTY)/zlib-1.2.8 \
-I$(3RD_PARTY)/giflib-5.1.4/lib \
-I$(3RD_PARTY)/SDL2-2.0.7/include \
-I$(BLIPBUF_LIB) \
-I$(DUKTAPE_LIB) \
-Iinclude
@@ -139,6 +141,7 @@ SOURCES_EXT= \
LPEG_SRC= $(3RD_PARTY)/lpeg-1.0.1/*.c
GIF_SRC= $(3RD_PARTY)/giflib-5.1.4/lib/*.c
BLIP_SRC= $(BLIPBUF_LIB)/blip_buf.c
DEMO_ASSETS= \
bin/assets/fire.tic.dat \
@@ -266,7 +269,7 @@ bin/tic80.o: src/tic80.c $(TIC80_H)
bin/tic.o: src/tic.c $(TIC80_H)
$(CC) $< $(OPT) $(INCLUDES) -c -o $@
bin/blip_buf.o: src/ext/blip_buf.c $(TIC80_H)
bin/blip_buf.o: $(BLIP_SRC)
$(CC) $< $(OPT) $(INCLUDES) -c -o $@
bin/jsapi.o: src/jsapi.c $(TIC80_H)
@@ -278,7 +281,7 @@ bin/luaapi.o: src/luaapi.c $(TIC80_H)
bin/duktape.o: $(DUKTAPE_LIB)/duktape.c $(TIC80_H)
$(CC) $< $(OPT) $(INCLUDES) -c -o $@
TIC80_SRC = src/tic80.c src/tic.c src/ext/blip_buf.c src/jsapi.c src/luaapi.c $(DUKTAPE_LIB)/duktape.c
TIC80_SRC = src/tic80.c src/tic.c $(BLIP_SRC) src/jsapi.c src/luaapi.c $(DUKTAPE_LIB)/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
TIC80_A = bin/libtic80.a
TIC80_DLL = bin/tic80.dll