# Giorgio Ingargiola: This is the "Make.defines" file that will be # included by almost all the Makefiles we use # Directory for library and includes in cis307 LIBCIS307 = "../libcis307" # Following is the library, built from all the object files # in LIBCIS307 directory. LIBCIS307_NAME = $(LIBCIS307)/libcis307.a # Following is directory where we find additional include files LIBINCLUDE = $(LIBCIS307) CC = gcc CFLAGS = -I${LIBINCLUDE} -g -O0 -D_REENTRANT -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes ifeq (${OSTYPE}, linux) LIBS = ${LIBCIS307_NAME} -lpthread else ifeq (${OSTYPE}, solaris) LIBS = ${LIBCIS307_NAME} -lpthread -lsocket -lnsl -lposix4 else LIBS = ${LIBCIS307_NAME} endif endif CLEANFILES = core.* *.o temp.* *.out *~ core