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-01-11 09:42:31 +01:00
|
|
|
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)
|
2018-01-11 09:42:31 +01:00
|
|
|
gcc $(OPT) $(SRC) $(INCLUDE) -L$(PRE_BUILT)/mingw $(LIB) -o bin2txt.exe
|
2017-09-26 08:59:34 +02:00
|
|
|
|
2018-01-11 09:42:31 +01:00
|
|
|
linux: $(SRC)
|
|
|
|
gcc $(OPT) $(SRC) $(INCLUDE) $(LIB) -o bin2txt
|
2017-09-26 08:59:34 +02:00
|
|
|
|
|
|
|
macosx: $(SRC)
|
2018-01-11 09:42:31 +01:00
|
|
|
gcc $(OPT) $(SRC) $(INCLUDE) $(LIB) -o bin2txt
|