################################# # # 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 OBJS6 = abwm.o findbwrange.o OBJS7 = abwm2.o findbwrange.o OBJS8 = abwm3.o findbwrange.o abwm3: abwm3.o findbwrange.o $(CC) $(CFLAGS) $(DEFINES) -o abwm3 $(OBJS8) -lm abwm2: abwm2.o findbwrange.o $(CC) $(CFLAGS) $(DEFINES) -o abwm2 $(OBJS7) -lm abwm: abwm.o findbwrange.o $(CC) $(CFLAGS) $(DEFINES) -c abwm.c $(CC) $(CFLAGS) $(DEFINES) -c findbwrange.c $(CC) $(CFLAGS) $(DEFINES) -o abwm $(OBJS6) -lm all: librprobe.a abm: abm.o $(CC) $(CFLAGS) -o abm abm.o 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