TIC-80-guile/tools/bin2txt/makefile

18 lines
376 B
Makefile
Raw Normal View History

2017-09-26 08:59:34 +02:00
OPT=-O3 -Wall -std=c99
SRC=bin2txt.c
3RD_PARTY = ../../../3rd-party
INCLUDE=-I$(3RD_PARTY)/zlib-1.2.8
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