blob: 10d5b38b72893907f3f98fb788cb3934a4965238 [file] [log] [blame]
Luc Verhaegen6f3fe852009-01-07 15:34:58 +01001MAKE = make
Peter Lemenkovffd1b812010-12-06 17:29:30 +01002CFLAGS ?= -g -fpack-struct -Wall -O0
Christoph Pfisterer9e038522012-09-13 15:08:32 +02003CC ?= gcc
Luc Verhaegen6f3fe852009-01-07 15:34:58 +01004
Christoph Pfisterer9e038522012-09-13 15:08:32 +02005all: bios_extract bcpvpd ami_slab xfv
Luc Verhaegen01e13002009-01-07 15:36:37 +01006
Stefan Reinauer6ed57e52010-04-24 01:15:17 +02007BIOS_EXTRACT_OBJS = lh5_extract.o ami.o award.o phoenix.o bios_extract.o compat.o
Luc Verhaegen838fe242009-06-17 00:48:02 +02008bios_extract: $(BIOS_EXTRACT_OBJS)
9 $(CC) $(CFLAGS) $(BIOS_EXTRACT_OBJS) -o bios_extract
Luc Verhaegen6f3fe852009-01-07 15:34:58 +010010
Luc Verhaegena2980652009-06-17 14:45:24 +020011BCPVPD_OBJS = lzss_extract.o bcpvpd.o
12bcpvpd: $(BCPVPD_OBJS)
13 $(CC) $(CFLAGS) $(BCPVPD_OBJS) -o bcpvpd
Luc Verhaegen1646a412009-06-16 08:22:14 +020014
Michael Karcher703c6b92010-01-14 16:23:23 +010015AMISLAB_OBJS = ami_slab.o
16ami_slab: $(AMISLAB_OBJS)
17 $(CC) $(CFLAGS) $(AMISLAB_OBJS) -o ami_slab
18
Christoph Pfisterer9e038522012-09-13 15:08:32 +020019XFV_OBJS = xfv/Decompress.o xfv/efidecomp.o
20xfv: $(XFV_OBJS)
21 $(CC) -I xfv/ $(CFLAGS) -o xfv/efidecomp $(XFV_OBJS)
22
Luc Verhaegen57741672009-06-16 23:34:21 +020023# just here to easily verify the functionality of the lh5 routine
24LH5_TEST_OBJS = lh5_extract.o lh5_test.o
25lh5_test: $(LH5_TEST_OBJS)
26 $(CC) $(CFLAGS) $(LH5_TEST_OBJS) -o lh5_test
Luc Verhaegen462b7762009-06-10 16:56:26 +020027
Luc Verhaegen6f3fe852009-01-07 15:34:58 +010028clean:
Luc Verhaegen1646a412009-06-16 08:22:14 +020029 rm -f *.o
Luc Verhaegen838fe242009-06-17 00:48:02 +020030 rm -f bios_extract
Luc Verhaegen57741672009-06-16 23:34:21 +020031 rm -f bcpvpd
Luc Verhaegen1646a412009-06-16 08:22:14 +020032 rm -f lh5_test
Michael Karcher703c6b92010-01-14 16:23:23 +010033 rm -f ami_slab
Christoph Pfisterer9e038522012-09-13 15:08:32 +020034 rm -f xfv/efidecomp xfv/*.o
35
36.PHONY: all bios_extract bcpvpd ami_slab efidecomp lh5_test clean