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