mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-05 04:25:09 +01:00
24 lines
439 B
Makefile
24 lines
439 B
Makefile
TARGET := ftpd
|
|
|
|
CFILES := $(wildcard source/*.c)
|
|
OFILES := $(patsubst source/%,build.linux/%,$(CFILES:.c=.o))
|
|
|
|
CFLAGS := -g -Wall -Iinclude -DSTATUS_STRING="\"ftpd v$(VERSION)\""
|
|
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)
|