CC = gcc LD = ld CFLAGS = -std=gnu99 -fPIC -D__USE_BSD -D_GNU_SOURCE -pedantic -g -Wall -Wno-implicit -DLIBLOAD LDFLAGS = HEADERS = iowrap.h iotrack.h ops.h libload.h callmacros-x86-linux.h callmacros-ia64-linux.h all = iotrack .PHONY default: default: $(all) iotrack: main.c iowrap.so $(CC) $(CFLAGS) main.c -o $@ iowrap.so: iowrap.o libload.o $(CC) -shared -o $@ iowrap.o libload.o -ldl iowrap.o: iowrap.c $(HEADERS) $(CC) $(CFLAGS) -fPIC -c iowrap.c logread: logread.c logparse.o ops.o util.o strtab.o $(CC) $(CFLAGS) -o logread logread.c logparse.o ops.o strtab.o util.o htest: htest.c htab.o $(CC) $(CFLAGS) -o htest htest.c htab.o testo : testo.c $(CC) $(CFLAGS) -fpic -c testo.c $(LD) -shared -o testo.so testo.o clean: rm -f *.o iowrap.so iotrack *~ clobber: clean rm -f $(all)