Tests about a simple python3 fastcgi runner using libfcgi and the Python-C API.
python
c
wsgi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 442B

12345678910111213141516171819202122232425
  1. CC=gcc
  2. CFLAGS=-c -Wall `python3-config --includes`
  3. #CFLAGS=-c -Wall -Werror `python3-config --includes`
  4. LDFLAGS=`python3-config --libs` -lfcgi
  5. #LDFLAGS= -L`python3-config --configdir` `python3-config --libs` -lfcgi
  6. BIN=pyfcgi
  7. SRCS=$(wildcard *.c)
  8. OBJS=$(SRCS:.c=.o)
  9. all: $(BIN)
  10. $(BIN): $(OBJS)
  11. $(CC) $(LDFLAGS) -o $@ $^
  12. %.o: %.c
  13. $(CC) $(CFLAGS) -o $@ $<
  14. .PHONY: clean distclean
  15. distclean: clean
  16. -rm -v $(BIN)
  17. clean:
  18. -rm -v $(OBJS)