################################# # # Makefile for the Bprobe/Cprobe library # ################################# # # If you're compiling on an AIX machine, uncomment the following line. # #DEFINES = -DAIX #DEFINES = -DDEBUG #CC = gcc #CFLAGS = -O CFLAGS = #-g -D_DEBUG_ #-Wall -Wno-implicit #CFLAGS = -g -D_DEBUG_ #-Wall -Wno-implicit LDFLAGS = -lm OBJS = bprobe.o filter.o rprobeGuts.o setPackage.o util.o OBJS2 = congtool.o filter.o rprobeGuts.o setPackage.o util.o OBJS3 = cprobe.o filter.o rprobeGuts.o setPackage.o util.o OBJS4 = aprobe.o filter.o aprobeGuts.o setPackage.o util.o OBJS5 = sprobe.o filter.o rprobeGuts.o setPackage.o util.o all: librprobe.a bprobe.o: bprobe.c bprobe.h $(CC) $(CFLAGS) -DNOMAIN -c bprobe.c congtool.o: congtool.c congtool.h $(CC) $(CFLAGS) -DNOMAIN -c congtool.c # Chow: the raisePriority.o is removed librprobe.a: bprobe.o congtool.o filter.o rprobeGuts.o setPackage.o util.o ar cru librprobe.a bprobe.o filter.o rprobeGuts.o setPackage.o util.o .c.o: $(CC) -c $(CFLAGS) $(DEFINES) $*.c clean: /bin/rm -f *.o librprobe.a bprobe: bprobe.o filter.o rprobeGuts.o setPackage.o util.o $(CC) $(CFLAGS) $(DEFINES) -c bprobe.c $(CC) $(CFLAGS) $(DEFINES) -o bprobe $(OBJS) -lm cprobe: cprobe.o filter.o rprobeGuts.o setPackage.o util.o $(CC) $(CFLAGS) $(DEFINES) -c cprobe.c $(CC) $(CFLAGS) $(DEFINES) -o cprobe $(OBJS3) -lm sprobe: sprobe.o filter.o rprobeGuts.o setPackage.o util.o $(CC) $(CFLAGS) $(DEFINES) -c sprobe.c $(CC) $(CFLAGS) $(DEFINES) -o sprobe $(OBJS4) -lm aprobe: aprobe.o filter.o aprobeGuts.o setPackage.o util.o $(CC) $(CFLAGS) $(DEFINES) -c aprobe.c $(CC) $(CFLAGS) $(DEFINES) -o aprobe $(OBJS4) -lm