2019-09-24 08:53:00 +08:00
|
|
|
CROSS_COMPILE ?=
|
|
|
|
CC := $(CROSS_COMPILE)gcc
|
2022-10-08 14:28:05 +08:00
|
|
|
CFLAGS += -Os -g -Wall
|
2022-07-07 16:52:24 +08:00
|
|
|
LIB += -lcurl -lip4tc
|
2022-10-13 18:01:06 +08:00
|
|
|
|
|
|
|
IPTC_CFLAGS += -DHAVE_CONFIG_H -I./libiptc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT
|
|
|
|
|
2019-09-24 08:53:00 +08:00
|
|
|
OBG = rhost
|
|
|
|
|
2022-07-07 16:52:24 +08:00
|
|
|
all: conf.o rhost.o libiptc.o
|
2022-06-26 19:49:00 +08:00
|
|
|
$(CC) $(CFLAGS) $^ -o $(OBG) $(LIB)
|
2022-08-09 15:25:06 +08:00
|
|
|
chmod +x $(OBG)
|
2022-10-13 18:01:06 +08:00
|
|
|
|
|
|
|
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
|
2022-10-14 10:46:34 +08:00
|
|
|
$(CC) $(CFLAGS) $^ libiptc/libip4tc.o -o $(OBG) `/data/curl/bin/curl-config --cflags --static-libs` `pkg-config --libs --static libbrotlidec`
|
2022-10-13 18:01:06 +08:00
|
|
|
|
2019-09-24 08:53:00 +08:00
|
|
|
clean:
|
|
|
|
rm -rf *.o
|
|
|
|
rm $(OBG)
|
2022-10-14 10:46:34 +08:00
|
|
|
rm libiptc/*.o libiptc/*.a
|