-include ../../../Rules.make CC=gcc LD=gcc INSTALL=/usr/bin/install INSTALL_PREFIX=/usr/local TARG=dwarf2cqct HFILES=dat.h\ queue.h\ type.h\ u.h\ hash.h\ util.h OFILES=common.o\ dwarfattr.o\ dwarfattrs.o\ dwarfdie.o\ dwarfeval.o\ dwarfforms.o\ dwarfint.o\ dwarfio.o\ dwarfnames.o\ dwarfops.o\ dwarftags.o\ leb128.o\ print.o\ stack.o\ type.o\ util.o\ hash.o\ var.o\ patchtypes.o CADD=-I. INCFLAGS+=-I /usr/include CFLAGS=-O1 -g3 -ggdb -Wall -Wno-parentheses -Wno-switch $(INCFLAGS) CFLAGS+=$(CADD) #LADD = LDFLAGS+=$(LADD) -ldwarf -lelf # Adjust path accordingly #DWARFDEFS=/usr/include/dwarf.h .SUFFIXES: .c .o all: $(TARG) dwarf2cqct: dwarf2cqct.o $(OFILES) $(LD) -o $@ $(@:=.o) $(OFILES) $(LDFLAGS) # XXX: These targets turned off to avoid tears #dwarfattrs.c: dwarfattrs.sh $(DWARFDEFS) # sh dwarfattrs.sh $(DWARFDEFS) > dwarfattrs.c # #dwarfint.c: dwarfint.awk # awk -f dwarfint.awk > dwarfint.c # #dwarfnames.c: dwarfnames.sh $(DWARFDEFS) # sh dwarfnames.sh $(DWARFDEFS) > dwarfnames.c # #dwarfops.c: dwarfops.sh $(DWARFDEFS) # sh dwarfops.sh $(DWARFDEFS) > dwarfops.c # #dwarftags.c: dwarftags.sh $(DWARFDEFS) # sh dwarftags.sh $(DWARFDEFS) > dwarftags.c archive: git archive --format=tar --prefix=dwarf2cqct/ HEAD | gzip -c > ../dwarf2cqct.tar.gz git.tar: tar -C .. -cz dwarf2cqct > ../dwarf2cqct.git.tar.gz install: $(INSTALL) dwarf2cqct $(INSTALL_PREFIX)/bin clean: rm -f *.o rm -f $(TARG) rm -f $(NUKEME) nuke: clean $(OFILES:.o=.c): $(HFILES)