

CC_FLAGS= $(CFLAGS)
LD_LIBS= $(LDLIBS)

#
# Default Makefile Rules
#

install :: all

clean ::
	rm -f Makefile.full

#
# Makefile Rules
#




EXTRA_LIBS= ../timelib/libtime.a
CC_OPT= -g

CC_FLAGS=$(CFLAGS) -I../lang-common 



# Make rules for building auth.o

auth.o : auth.c Makefile.full 
	$(CC) $(CC_FLAGS) -c auth.c

clean ::
	rm -f auth.o auth.lint


# Make rules for building http.o

http.o : http.c Makefile.full 
	$(CC) $(CC_FLAGS) -c http.c

clean ::
	rm -f http.o http.lint


# Make rules for building lexer.o

lexer.o : lexer.c Makefile.full 
	$(CC) $(CC_FLAGS) -c lexer.c

clean ::
	rm -f lexer.o lexer.lint


# Make rules for building modules.o

modules.o : modules.c Makefile.full 
	$(CC) $(CC_FLAGS) -c modules.c

clean ::
	rm -f modules.o modules.lint


# Make rules for building mod_w3msql.o

mod_w3msql.o : mod_w3msql.c Makefile.full 
	$(CC) $(CC_FLAGS) -c mod_w3msql.c

clean ::
	rm -f mod_w3msql.o mod_w3msql.lint


# Make rules for building w3-msql.o

w3-msql.o : w3-msql.c Makefile.full 
	$(CC) $(CC_FLAGS) -c w3-msql.c

clean ::
	rm -f w3-msql.o w3-msql.lint


# Make rules for building w3-auth.o

w3-auth.o : w3-auth.c Makefile.full 
	$(CC) $(CC_FLAGS) -c w3-auth.c

clean ::
	rm -f w3-auth.o w3-auth.lint



# Make rules for building w3-msql

all : w3-msql

w3-msql : mod_w3msql.o w3-msql.o lexer.o modules.o auth.o http.o ../lang-common/mod_std.o ../lang-common/mod_msql.o ../lang-common/liblite.a ../msql/libmsql.a ../timelib/libtime.a ../regexp/libregexp.a Makefile.full
	$(LINK) $(CC_FLAGS) mod_w3msql.o w3-msql.o lexer.o modules.o auth.o http.o ../lang-common/mod_std.o ../lang-common/mod_msql.o ../lang-common/liblite.a ../msql/libmsql.a ../timelib/libtime.a ../regexp/libregexp.a -o w3-msql $(LD_LIBS) 

clean :: 
	rm -f w3-msql



# Make rules for building w3-auth

all : w3-auth

w3-auth : w3-auth.o http.o ../lang-common/fcrypt.o ../msql/libmsql.a Makefile.full
	$(LINK) $(CC_FLAGS) w3-auth.o http.o ../lang-common/fcrypt.o ../msql/libmsql.a -o w3-auth $(LD_LIBS) 

clean :: 
	rm -f w3-auth



#
# Debugging compilations
#
# Note : if you want to build lextest and you are using the GNU cpp (for
# example, you are using gcc to compile this code) you'll have to put
# -traditional in the compilation line below.  If you don't, you'll get
# some ANSI cpp garbage that doesn't let you expand a macro param within
# quotes.  In this case you'll get a line of 'x' characters down the left
# side of the screen when you run lextest.
#

lextest: lexer.c
	$(CC) $(CC_FLAGS) -DLEX_DEBUG -DNOTDEF -g -o lextest lexer.c



install ::
	if test -f $(INST_DIR)/bin/w3-msql;\
	then\
		rm -f $(INST_DIR)/bin/w3-msql.old;\
		mv $(INST_DIR)/bin/w3-msql $(INST_DIR)/bin/w3-msql.old;\
	fi;\
	cp w3-msql $(INST_DIR)/bin/w3-msql
	chmod 0755 $(INST_DIR)/bin/w3-msql

install ::
	if test -f $(INST_DIR)/bin/w3-auth;\
	then\
		rm -f $(INST_DIR)/bin/w3-auth.old;\
		mv $(INST_DIR)/bin/w3-auth $(INST_DIR)/bin/w3-auth.old;\
	fi;\
	cp w3-auth $(INST_DIR)/bin/w3-auth
	chmod 0755 $(INST_DIR)/bin/w3-auth


auth.o: ../common/portability.h
auth.o: ../common/config.h 
auth.o: ../msql/msql.h
auth.o: ../lang-common/y.tab.h 
auth.o: ../lang-common/lite.h
auth.o: ../lang-common/version.h

http.o: ../common/portability.h
http.o: ../common/config.h 
http.o: ../msql/msql.h
http.o: ../lang-common/y.tab.h 
http.o: ../lang-common/lite.h
http.o: ../lang-common/version.h

lexer.o: ../common/portability.h
lexer.o: ../common/config.h 
lexer.o: ../msql/msql.h
lexer.o: ../lang-common/y.tab.h 
lexer.o: ../lang-common/lite.h
lexer.o: ../lang-common/version.h

modules.o: ../common/portability.h
modules.o: ../common/config.h 
modules.o: ../msql/msql.h
modules.o: ../lang-common/y.tab.h 
modules.o: ../lang-common/lite.h
modules.o: ../lang-common/version.h

mod_w3msql.o: ../common/portability.h
mod_w3msql.o: ../common/config.h 
mod_w3msql.o: ../msql/msql.h
mod_w3msql.o: ../lang-common/y.tab.h 
mod_w3msql.o: ../lang-common/lite.h
mod_w3msql.o: ../lang-common/version.h

w3-msql.o: ../common/portability.h
w3-msql.o: ../common/config.h 
w3-msql.o: ../msql/msql.h
w3-msql.o: ../lang-common/y.tab.h 
w3-msql.o: ../lang-common/lite.h
w3-msql.o: ../lang-common/version.h

w3-auth.o: ../common/portability.h
w3-auth.o: ../common/config.h 
w3-auth.o: ../msql/msql.h
w3-auth.o: ../lang-common/y.tab.h 
w3-auth.o: ../lang-common/lite.h
w3-auth.o: ../lang-common/version.h



