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#
13include ../Makefile.config
14PROG = acpisrc
15
16#
17# Flags specific to acpisrc
18#
19CFLAGS+= \
20    -DACPI_SRC_APP \
21    -I$(ACPICA_TOOLS)/acpisrc
22
23OBJS = \
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#
44ascase.o :          $(ACPICA_TOOLS)/acpisrc/ascase.c
45	$(COMPILE)
46
47asconvrt.o :        $(ACPICA_TOOLS)/acpisrc/asconvrt.c
48	$(COMPILE)
49
50asfile.o :          $(ACPICA_TOOLS)/acpisrc/asfile.c
51	$(COMPILE)
52
53asmain.o :          $(ACPICA_TOOLS)/acpisrc/asmain.c
54	$(COMPILE)
55
56asremove.o :        $(ACPICA_TOOLS)/acpisrc/asremove.c
57	$(COMPILE)
58
59astable.o :         $(ACPICA_TOOLS)/acpisrc/astable.c
60	$(COMPILE)
61
62asutils.o :         $(ACPICA_TOOLS)/acpisrc/asutils.c
63	$(COMPILE)
64
65#
66# ACPICA core source - common
67#
68getopt.o :          $(ACPICA_COMMON)/getopt.c
69	$(COMPILE)
70
71#
72# Unix OS services layer (OSL)
73#
74osunixdir.o :       $(ACPICA_OSL)/osunixdir.c
75	$(COMPILE)
76
77
78clean :
79	rm -f $(PROG) $(PROG).exe $(OBJS)
80
81install :
82	$(INSTALLPROG)
83