Makefile revision 1.1.1.1
1# 2# acpibin - Binary ACPI table utility 3# 4 5# 6# Note: This makefile is intended to be used from within the native 7# ACPICA directory structure, from under generate/unix. It specifically 8# places all object files in a generate/unix subdirectory, not within 9# the various ACPICA source directories. This prevents collisions 10# between different compilations of the same source file with different 11# compile options, and prevents pollution of the source code. 12# 13include ../Makefile.config 14PROG = acpibin 15 16# 17# Flags specific to acpibin 18# 19CFLAGS+= \ 20 -DACPI_BIN_APP \ 21 -I$(ACPICA_TOOLS)/acpibin 22 23OBJS = \ 24 abcompare.o \ 25 abmain.o \ 26 utalloc.o \ 27 utcache.o \ 28 utdebug.o \ 29 utdecode.o \ 30 utglobal.o \ 31 utlock.o \ 32 utmath.o \ 33 utmisc.o \ 34 utmutex.o \ 35 utstate.o \ 36 utxferror.o \ 37 osunixxf.o \ 38 getopt.o 39 40# 41# Root rule 42# 43$(PROG) : $(OBJS) 44 $(CC) $(LDFLAGS) $(OBJS) -o $(PROG) 45 $(COPYPROG) 46 47# 48# acpibin source 49# 50abcompare.o : $(ACPICA_TOOLS)/acpibin/abcompare.c 51 $(COMPILE) 52 53abmain.o : $(ACPICA_TOOLS)/acpibin/abmain.c 54 $(COMPILE) 55 56# 57# ACPICA core source - common 58# 59getopt.o : $(ACPICA_COMMON)/getopt.c 60 $(COMPILE) 61 62# 63# ACPICA core source 64# 65utalloc.o : $(ACPICA_CORE)/utilities/utalloc.c 66 $(COMPILE) 67 68utcache.o : $(ACPICA_CORE)/utilities/utcache.c 69 $(COMPILE) 70 71utdebug.o : $(ACPICA_CORE)/utilities/utdebug.c 72 $(COMPILE) 73 74utdecode.o : $(ACPICA_CORE)/utilities/utdecode.c 75 $(COMPILE) 76 77utglobal.o : $(ACPICA_CORE)/utilities/utglobal.c 78 $(COMPILE) 79 80utlock.o : $(ACPICA_CORE)/utilities/utlock.c 81 $(COMPILE) 82 83utmath.o : $(ACPICA_CORE)/utilities/utmath.c 84 $(COMPILE) 85 86utmisc.o : $(ACPICA_CORE)/utilities/utmisc.c 87 $(COMPILE) 88 89utmutex.o : $(ACPICA_CORE)/utilities/utmutex.c 90 $(COMPILE) 91 92utstate.o : $(ACPICA_CORE)/utilities/utstate.c 93 $(COMPILE) 94 95utxferror.o : $(ACPICA_CORE)/utilities/utxferror.c 96 $(COMPILE) 97 98# 99# Unix OS services layer (OSL) 100# 101osunixxf.o : $(ACPICA_OSL)/osunixxf.c 102 $(COMPILE) 103 104 105clean : 106 rm -f $(PROG) $(PROG).exe $(OBJS) 107 108install : 109 $(INSTALLPROG) 110