2008-11-02 13:17:10 +01:00
|
|
|
TARGET = telnetproxy
|
2006-11-25 14:31:52 +01:00
|
|
|
|
2008-11-02 13:17:10 +01:00
|
|
|
CFLAGS = -Wall -O2 -MD -MP -MF $(*F).d
|
2006-11-25 14:31:52 +01:00
|
|
|
|
2008-11-02 13:17:10 +01:00
|
|
|
# ------
|
2006-11-25 14:31:52 +01:00
|
|
|
|
2008-11-02 13:17:10 +01:00
|
|
|
SRC := $(wildcard *.c)
|
2006-11-25 14:31:52 +01:00
|
|
|
|
2008-11-02 13:17:10 +01:00
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
$(TARGET): $(SRC:.c=.o)
|
|
|
|
@echo " Linking file: $@"
|
|
|
|
@$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) > /dev/null
|
2006-11-25 14:31:52 +01:00
|
|
|
|
2008-11-02 13:17:10 +01:00
|
|
|
%.o: %.c
|
|
|
|
@echo " Building file: $<"
|
|
|
|
@$(CC) -c $(CFLAGS) $< -o $@
|
2006-11-25 14:31:52 +01:00
|
|
|
|
|
|
|
clean:
|
2008-11-02 13:17:10 +01:00
|
|
|
rm -rf $(TARGET) *.o *.d
|
2006-11-25 14:31:52 +01:00
|
|
|
|
2008-11-02 13:17:10 +01:00
|
|
|
-include $(shell find -name *.d 2> /dev/null)
|