ftpiiu_plugin/Makefile.linux

24 lines
454 B
Makefile
Raw Normal View History

2014-11-25 07:13:47 +01:00
TARGET := $(notdir $(CURDIR))
CFILES := $(wildcard source/*.c)
OFILES := $(patsubst source/%,build.linux/%,$(CFILES:.c=.o))
2016-01-22 21:42:38 +01:00
CFLAGS := -g -Wall -Iinclude -DSTATUS_STRING="\"ftpd v$(VERSION)\""
2014-11-25 07:13:47 +01:00
LDFLAGS :=
.PHONY: all clean
all: build.linux $(TARGET)
build.linux:
@mkdir build.linux/
$(TARGET): $(OFILES)
@$(CC) -o $@ $^ $(LDFLAGS)
$(OFILES): build.linux/%.o : source/%.c
@$(CC) -o $@ -c $< $(CFLAGS)
clean:
@$(RM) -r build.linux/ $(TARGET)