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