# ========================================================================
# ==== Set paths to the source and include directories 
# ========================================================================
#-- Set the locations of the code
APIDIR = ../
COMMONDIR = $(APIDir)APICommon/

# ========================================================================
# ==== Set compiler, compiler flags, and library/include paths
# ========================================================================
CC = xlc
CCPP = xlC
LINT = lint

CFLAGS = #-Wall -W -Wshadow -Wpointer-arith -Wcast-qual     \
        #-Wcast-align -Wconversion -Waggregate-return      \
        #-Wstrict-prototypes -Wmissing-prototypes          \
        #-Wmissing-declarations -Wnested-externs -Winline  \
        #-Wtraditional -Wbad-function-cast -Wwrite-strings \
       #-Woverloaded-virtual -Wsynth \
       # -pedantic -g -O -ansi

DEFOPTS = -D_BSD=43
INCDIRS = -I$(APIDIR) -I$(COMMONDIR) 
LIBDIRS = 

ALLFLAGS = $(CFLAGS) $(MAKEDEPEND) $(DEFOPTS) $(INCDIRS)
.c.o:
	$(CC) -c $(ALLFLAGS) $<

.C.o:
	$(CCPP) -c $(ALLFLAGS)  $<

# ========================================================================
# ==== Object file dependencies automatically generated by the compiler
# ========================================================================

all: Sockets.o Utils.o APIStringData.o APISymbolTable.o APIStringMsg.o String.o
lint:
	@-$(LINT) -I$(COMMONDIR) StdLib.C 

clean:
	@-rm -f *.o 

# DO NOT DELETE THIS LINE -- make depend depends on it.
