4ba9eaaafc
FossilOrigin-Name: f4af357f387db21585ed5e0a171060e87ab4c9c7c6d954b63294f596f91d63d2
23 lines
377 B
Makefile
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
|