1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
# Makefile for cgihtml.a
# $Id: Makefile,v 1.1 2001-10-23 19:08:20 smm Exp $
# macros and variables
CC= gcc
RANLIB= ranlib
CFLAGS= -g -Wall -DUNIX #-DUPLOADDIR='"/tmp"'
#CFLAGS = -g -Wall -DWINDOWS #-DUPLOADDIR='"/tmp"'
INSTALLDIR= /usr/local/etc/httpd/cgi-src
OBJS = string-lib.o cgi-llist.o cgi-lib.o html-lib.o
LIB = libcgihtml.a
# targets
$(LIB): $(OBJS)
ar cr $@ $(OBJS)
$(RANLIB) $@
examples: $(LIB)
cd examples; make all
all: examples
install: all
cp -f *.h $(LIB) $(INSTALLDIR)
cd examples; make install
clean:
rm -f *.o $(LIB)
clobber:
rm -f *.o $(LIB)
cd examples; make clean
|