projectC/Makefile

16 lines
268 B
Makefile
Raw Normal View History

2025-08-18 15:04:01 +00:00
CC = gcc
CFLAGS = -Wall -O2
LDFLAGS = -lcjson
all: json_service
json_service: json_service.c
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
install: json_service
sudo cp json_service /usr/lib/cgi-bin/
sudo chmod +x /usr/lib/cgi-bin/json_service
clean:
rm -f json_service