treebird/Makefile
me@ow.nekobit.net 4ba9eaaafc Load page, config
FossilOrigin-Name: f4af357f387db21585ed5e0a171060e87ab4c9c7c6d954b63294f596f91d63d2
2022-01-17 01:44:27 +00:00

23 lines
377 B
Makefile

CC ?= cc
CFLAGS = -Wall
LDFLAGS = -lcurl
SRC = $(wildcard src/*.c)
OBJ = $(patsubst %.c,%.o,$(SRC))
DIST = dist/
TARGET = ratfe.cgi
all: $(TARGET)
$(TARGET): filec $(OBJ)
$(CC) -o $(DIST)$(TARGET) $(LDFLAGS) $(OBJ)
filec: src/file-to-c/main.o
$(CC) -o file-to-c $<
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJ) src/file-to-c/main.o
.PHONY: all filec clean