daemon/Makefile

18 lines
330 B
Makefile
Raw Normal View History

2020-09-11 16:40:25 +08:00
CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
STRIP := $(CROSS_COMPILE)strip
CFLAGS += -g -O2 -Wall -I../libconf -L../libconf
LIBS = -lconf -static
OBJ := daemon
2021-12-11 13:20:06 +08:00
all: conf.o popen.o main.o
2020-09-11 16:40:25 +08:00
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
$(STRIP) $(OBJ)
-chmod a+x $(OBJ)
.c.o:
$(CC) $(CFLAGS) -c $< $(LIBS)
clean:
rm -rf *.o
rm $(OBJ)