Archived
1
0
This repository has been archived on 2021-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
lua-fastcgi/Makefile

19 lines
346 B
Makefile
Raw Normal View History

2012-02-26 14:51:24 -09:00
CFLAGS=-c -std=gnu99 -Wall
LDFLAGS=-O2 -Wl,-Bstatic -lfcgi -llua5.1 -Wl,-Bdynamic -lm -lpthread
.c.o:
$(CC) $(CFLAGS) $< -o $@
all: lua-fastcgi
debug: CFLAGS+=-g -DDEBUG
debug: LDFLAGS+=-lrt
2012-02-26 14:51:24 -09:00
debug: lua-fastcgi
lua-fastcgi: src/lua-fastcgi.o src/lfuncs.o src/lua.o src/config.o
$(CC) $^ $(LDFLAGS) -o $@
clean:
rm -f src/*.o lua-fastcgi