# $Id$ DIR := $(shell pwd) SRC := $(DIR)/src OBJ := $(DIR)/obj .PHONY: clean $(LIB)/mod_cgi.so: $(OBJ)/mod_cgi.o mkdir -p $(LIB) $(CC) -shared -L $(LIB) -o $@ $^ $(OBJ)/mod_cgi.o: $(SRC)/mod_cgi.c $(INC)/sunhttpd_module.h mkdir -p $(OBJ) $(CC) -I$(INC) -I$(INC2) -fPIC -c -o $@ $< clean: rm -rf $(OBJ) $(LIB)