alix-usv/daemon/Makefile

30 lines
668 B
Makefile
Raw Permalink Normal View History

2009-03-15 14:41:24 +01:00
TARGET1 = alix-usv
TARGET2 = alix-usvd
CFLAGS = -Wall -O2 -MD -MP -MF $(*F).d
# ------
SRC1 := alix-usv.c logging.c unixsocket.c
2009-05-03 16:16:56 +02:00
SRC2 := alix-usvd.c configfile.c event.c logging.c pidfile.c signals.c unixsocket.c
SRC2 += usvdevice.c usvstate.c
2009-03-15 14:41:24 +01:00
all: $(TARGET1) $(TARGET2)
$(TARGET1): $(SRC1:.c=.o)
@echo " Linking file: $@"
@$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) > /dev/null
$(TARGET2): $(SRC2:.c=.o)
@echo " Linking file: $@"
@$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) > /dev/null
%.o: %.c
@echo " Building file: $<"
@$(CC) -c $(CFLAGS) $< -o $@
clean:
2009-04-19 14:20:58 +02:00
rm -rf $(TARGET1) $(TARGET2) *.o *.d *.log *.sock *.pid
2009-03-15 14:41:24 +01:00
-include $(shell find . -name \*.d 2> /dev/null)