TIC-80-guile/tools/bin2txt/makefile

18 lines
374 B
Makefile
Raw Normal View History

2017-09-26 08:59:34 +02:00
OPT=-O3 -Wall -std=c99
SRC=bin2txt.c
2018-02-10 09:21:21 +01:00
3RD_PARTY = ../../3rd-party
2018-07-11 12:03:03 +02:00
INCLUDE=-I$(3RD_PARTY)/zlib-1.2.11
PRE_BUILT = $(3RD_PARTY)/pre-built
2017-09-26 08:59:34 +02:00
LIB=-lz
all: windows
windows: $(SRC)
gcc $(OPT) $(SRC) $(INCLUDE) -L$(PRE_BUILT)/mingw $(LIB) -o bin2txt.exe
2017-09-26 08:59:34 +02:00
linux: $(SRC)
gcc $(OPT) $(SRC) $(INCLUDE) $(LIB) -o bin2txt
2017-09-26 08:59:34 +02:00
macosx: $(SRC)
gcc $(OPT) $(SRC) $(INCLUDE) $(LIB) -o bin2txt