ftpiiu_plugin/Makefile.linux

24 lines
447 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-12 23:24:01 +01:00
CFLAGS := -g -Wall -Iinclude -DSTATUS_STRING="\"ftpd v1.2\""
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)