Files
old-nasuh/Makefile

23 lines
443 B
Makefile
Raw Permalink Normal View History

2022-11-19 11:42:19 +01:00
# compile main.c and link it dynamically to the libmicrohttpd library
# (libmicrohttpd.so must be in the library search path)
# (this Makefile is for GNU make)
CC = gcc
CFLAGS = -Wall -g -O2
LDFLAGS = -lmicrohttpd
2022-11-19 23:18:44 +01:00
OBJFILES = main.o handlers.o
DEPS = handlers.h
2022-11-19 11:42:19 +01:00
all: nasuh-server
2022-11-19 23:18:44 +01:00
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
nasuh-server: $(OBJFILES)
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
2022-11-19 11:42:19 +01:00
clean:
2022-11-19 23:18:44 +01:00
rm -f nasuh-server *.o
2022-11-19 11:42:19 +01:00
# end of Makefile