Home | History | Annotate | Line # | Download | only in acpisrc
Makefile revision 1.1.1.2
      1 #
      2 # acpisrc - ACPICA source code conversion 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 #
     13 include ../Makefile.config
     14 PROG = acpisrc
     15 
     16 #
     17 # Flags specific to acpisrc
     18 #
     19 CFLAGS+= \
     20     -DACPI_SRC_APP \
     21     -I$(ACPICA_TOOLS)/acpisrc
     22 
     23 OBJS = \
     24 	ascase.o \
     25 	asconvrt.o \
     26 	asfile.o \
     27 	asmain.o \
     28 	asremove.o \
     29 	astable.o \
     30 	asutils.o \
     31 	getopt.o \
     32 	osunixdir.o
     33 
     34 #
     35 # Root rule
     36 #
     37 $(PROG) : $(OBJS)
     38 	$(CC) $(LDFLAGS) $(OBJS) -o $(PROG)
     39 	$(COPYPROG)
     40 
     41 #
     42 # acpisrc source
     43 #
     44 ascase.o :          $(ACPICA_TOOLS)/acpisrc/ascase.c
     45 	$(COMPILE)
     46 
     47 asconvrt.o :        $(ACPICA_TOOLS)/acpisrc/asconvrt.c
     48 	$(COMPILE)
     49 
     50 asfile.o :          $(ACPICA_TOOLS)/acpisrc/asfile.c
     51 	$(COMPILE)
     52 
     53 asmain.o :          $(ACPICA_TOOLS)/acpisrc/asmain.c
     54 	$(COMPILE)
     55 
     56 asremove.o :        $(ACPICA_TOOLS)/acpisrc/asremove.c
     57 	$(COMPILE)
     58 
     59 astable.o :         $(ACPICA_TOOLS)/acpisrc/astable.c
     60 	$(COMPILE)
     61 
     62 asutils.o :         $(ACPICA_TOOLS)/acpisrc/asutils.c
     63 	$(COMPILE)
     64 
     65 #
     66 # ACPICA core source - common
     67 #
     68 getopt.o :          $(ACPICA_COMMON)/getopt.c
     69 	$(COMPILE)
     70 
     71 #
     72 # Unix OS services layer (OSL)
     73 #
     74 osunixdir.o :       $(ACPICA_OSL)/osunixdir.c
     75 	$(COMPILE)
     76 
     77 
     78 clean :
     79 	rm -f $(PROG) $(PROG).exe $(OBJS)
     80 
     81 install :
     82 	$(INSTALLPROG)
     83