| 1 | -include ../config.mk |
| 2 | |
| 3 | CFLAGS=-I../include |
| 4 | CC=$(CROSS)gcc |
| 5 | SMRAM_ICH2_OBJS=smram-linux-tool.o ../pci/pci-linux.o ../ich2/smram-ich2.noraw.o |
| 6 | PCI_OBJS=pci.o ../pci/pci-linux.o |
| 7 | POKE_RLS_OBJS=poke-rls.o poke-rls-asm.o ../pci/pci-linux.o |
| 8 | FROB_RLS_OBJS=frob-rls.o poke-rls-asm.o ../pci/pci-linux.o |
| 9 | |
| 10 | all: smram-ich2 port pci poke-rls |
| 11 | |
| 12 | %.noraw.o: %.c |
| 13 | $(CC) $(CFLAGS) -c -o $@ $< |
| 14 | |
| 15 | smram-ich2: $(SMRAM_ICH2_OBJS) |
| 16 | $(CC) $(CFLAGS) -o smram-ich2 $(SMRAM_ICH2_OBJS) |
| 17 | |
| 18 | port: port.o |
| 19 | $(CC) -o port port.o |
| 20 | |
| 21 | elfload: elfload.o |
| 22 | $(CC) -o elfload elfload.o |
| 23 | |
| 24 | pci: $(PCI_OBJS) |
| 25 | $(CC) $(CFLAGS) -o pci $(PCI_OBJS) |
| 26 | |
| 27 | frob-rls: $(FROB_RLS_OBJS) |
| 28 | $(CC) $(CFLAGS) -o frob-rls $(FROB_RLS_OBJS) |
| 29 | |
| 30 | clean: |
| 31 | rm -f $(SMRAM_ICH2_OBJS) smram-ich2 |
| 32 | |
| 33 | poke: |