WORKINGDIR = /var/tmp/LFDK CFLAGS += -DWORKINGDIR=\"$(WORKINGDIR)\" override CFLAGS += -I.. `pkg-config --cflags glib-2.0` -fPIC LDFLAGS = `pkg-config --libs glib-2.0` -L.. -lstandalone all: acpicompile.exe iasl acpixtract acpidump acpicompile.exe: acpicompile.o .depend gcc acpicompile.o $(LDFLAGS) -o acpicompile.exe cp acpicompile.exe ../plugins acpica-unix-20090320.tar.gz: wget -U --proxy=off http://www.acpica.org/download/acpica-unix-20090320.tar.gz cp acpica-unix-20090320.tar.gz ../initramfs/srpms/ pmtools-20071116.tar.bz2: wget http://www.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/pmtools-20071116.tar.bz2 cp pmtools-20071116.tar.bz2 ../initramfs/srpms/ iasl: acpica-unix-20090320.tar.gz tar -zxvf acpica-unix-20090320.tar.gz cd acpica-unix-20090320/compiler ; make -s ; cp iasl ../.. cp iasl ../plugins rm -rf acpica-unix-20090320 acpixtract: acpica-unix-20090320.tar.gz tar -zxvf acpica-unix-20090320.tar.gz cd acpica-unix-20090320/tools/acpixtract/ ; make -s ; cp acpixtract ../../.. cp acpixtract ../plugins rm -rf acpica-unix-20090320 acpidump: pmtools-20071116.tar.bz2 tar -jxf pmtools-20071116.tar.bz2 cd pmtools-20071116 ; make cp pmtools-20071116/acpidump/acpidump ../plugins clean: rm -rf *~ *.o rm -rf *.dsl *.dat *.aml acpi.dump rm -f acpicompile.exe acpicompile.so iasl acpixtract # most of the makefile remains as it was before. # at the bottom, we add these lines: # rule for building dependency lists, and writing them to a file # named ".depend". .depend: rm -f .depend gccmakedep -f- -- $(CFLAGS) -- *.c > .depend # now add a line to include the dependency list. include .depend