blob: 0313dad39e53ddee620ec0a3c8609905d69c74ed [file] [log] [blame]
Luc Verhaegen6f3fe852009-01-07 15:34:58 +01001MAKE = make
Luc Verhaegena794e6b2009-12-21 11:37:19 +01002CFLAGS = -g -fpack-struct -Wall -O0
Luc Verhaegen53cd0342009-01-07 17:23:32 +01003CC = gcc
Luc Verhaegen6f3fe852009-01-07 15:34:58 +01004
Michael Karcher703c6b92010-01-14 16:23:23 +01005all: bios_extract bcpvpd ami_slab
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
Luc Verhaegen57741672009-06-16 23:34:21 +020019# just here to easily verify the functionality of the lh5 routine
20LH5_TEST_OBJS = lh5_extract.o lh5_test.o
21lh5_test: $(LH5_TEST_OBJS)
22 $(CC) $(CFLAGS) $(LH5_TEST_OBJS) -o lh5_test
Luc Verhaegen462b7762009-06-10 16:56:26 +020023
Luc Verhaegen6f3fe852009-01-07 15:34:58 +010024clean:
Luc Verhaegen1646a412009-06-16 08:22:14 +020025 rm -f *.o
Luc Verhaegen838fe242009-06-17 00:48:02 +020026 rm -f bios_extract
Luc Verhaegen57741672009-06-16 23:34:21 +020027 rm -f bcpvpd
Luc Verhaegen1646a412009-06-16 08:22:14 +020028 rm -f lh5_test
Michael Karcher703c6b92010-01-14 16:23:23 +010029 rm -f ami_slab