23 lines
652 B
Makefile
23 lines
652 B
Makefile
CROSS_COMPILE ?=
|
|
CC := $(CROSS_COMPILE)gcc
|
|
CFLAGS += -Os -g -Wall
|
|
LIB += -lcurl -lip4tc
|
|
|
|
IPTC_CFLAGS += -DHAVE_CONFIG_H -I./libiptc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT
|
|
|
|
OBG = rhost
|
|
|
|
all: conf.o rhost.o libiptc.o
|
|
$(CC) $(CFLAGS) $^ -o $(OBG) $(LIB)
|
|
chmod +x $(OBG)
|
|
|
|
static: conf.o rhost.o libiptc.o
|
|
$(CC) $(IPTC_CFLAGS) -c libiptc/libip4tc.c -o libiptc/libip4tc.o
|
|
ar crs libiptc/libip4tc.a libiptc/libip4tc.o
|
|
$(CC) $(CFLAGS) $^ libiptc/libip4tc.o -o $(OBG) `/data/curl/bin/curl-config --cflags --static-libs` `pkg-config --libs --static libbrotlidec`
|
|
|
|
clean:
|
|
rm -rf *.o
|
|
rm $(OBG)
|
|
rm libiptc/*.o libiptc/*.a
|