########################################
##
## CrazyWWWBoard.cgi Makefile
##
## Designed by Seung-young, Kim
##
## [Hongik Shinan Network Security]
##
########################################

CC      = gcc -Wall        # For GNU C Compiler(gcc)
#CC      = cc               # For the other C Compiler 

LIB     = qDecoder.a libgdbm.a

OBJ1    = convASC2GDBM.o
OBJ2    = convGDBM2ASC.o

##
## Main
##
all:	convGDBM2ASC convASC2GDBM

reall:	clean all

##
## convASC2GDBM 
##
convASC2GDBM: $(OBJ1)
	$(CC) -o convASC2GDBM $(OBJ1) $(LIB)

##
## convGDBM2ASC 
##
convGDBM2ASC: $(OBJ2) 
	$(CC) -o convGDBM2ASC $(OBJ2) $(LIB)

## Compile Module
%.o:	%.c
	$(CC) -c -o $@ $<

## Clear Module
clean:
	rm -f $(OBJ1) $(OBJ2) convASC2GDBM convGDBM2ASC

