store the pre-alphacomposit hook and allow it to be queried.
[AROS.git] / workbench / devs / AHI / Include / Makefile.in
blobf0a61c3d52613b9f9b24c5b10e3fb25f94dd4cb8
2 # Makefile.in for the user and developer documentation
6 # Autoconfig stuff
7 ########################################
9 @SET_MAKE@
11 VPATH = @srcdir@
13 top_srcdir = @top_srcdir@
14 srcdir = @srcdir@
15 prefix = @prefix@
16 includedir = @includedir@
18 DISTDIR = @DISTDIR@
20 DEVDIR = ${DISTDIR}/Developer
22 DEVINCDIR = ${DEVDIR}/Include
24 host = @host@
25 host_cpu = @host_cpu@
27 INSTALL = @INSTALL@
28 INSTALL_DATA = @INSTALL_DATA@
30 SFDC = @SFDC@
31 SFDC_TARGET = --target=${host}
35 # Files
36 ########################################
38 CTARGETS = C-clib-ahi_protos.h C-clib-ahi_sub_protos.h \
39 C-proto-ahi.h C-proto-ahi_sub.h
41 ASMTARGETS = Asm-lvo-ahi_lib.i Asm-lvo-ahi_sub_lib.i
43 FDTARGETS = FD-ahi_lib.fd FD-ahi_sub_lib.fd
45 GCCTARGETS = C-inline-ahi.h C-inline-ahi_sub.h
47 AROSTARGETS = C-defines-ahi.h C-defines-ahi_sub.h
49 OS4TARGETS = C-interfaces-ahi.h C-interfaces-ahi_sub.h
51 PRAGMATARGETS = C-pragmas-ahi_pragmas.h C-pragmas-ahi_sub_pragmas.h
54 ASMFILES = Asm/devices/ahi.i Asm/libraries/ahi_sub.i
56 CFILES = C/libraries/ahi_sub.h C/devices/ahi.h
58 SFDFILES = SFD/ahi_lib.sfd SFD/ahi_sub_lib.sfd
61 TARGETS = $(CTARGETS) $(FDTARGETS) $(GCCTARGETS) $(AROSTARGETS)
62 # $(OS4TARGETS)
63 FILES = $(CFILES) $(SFDFILES)
65 ifeq ($(host_cpu),m68k)
66 TARGETS += $(ASMTARGETS) $(PRAGMATARGETS)
67 FILES += $(ASMFILES)
68 endif
71 # Targets
72 ########################################
74 .PHONY: all clean distclean maintainer-clean bindist gcc-include
76 all: $(TARGETS)
78 clean:
79 $(RM) -r $(TARGETS) gcc-include-*.stamp gcc
81 distclean: clean
82 $(RM) Makefile
84 maintainer-clean: distclean
86 install: INCDIR := $(includedir)
87 install: gcc-include-inst.stamp
89 bindist: $(TARGETS)
90 for file in $(TARGETS); do \
91 $(INSTALL) -d $(DEVINCDIR)/`echo $$file | sed -e 's,\(.*\)-.*.,\1,' | sed -e 's,-,/,g'`; \
92 $(INSTALL_DATA) $$file $(DEVINCDIR)/`echo $$file | sed -e 's,-,/,g'`; \
93 done
95 for dir in $(dir $(FILES)); do \
96 $(INSTALL) -d $(DEVINCDIR)/$$dir; \
97 done
99 for file in $(FILES); do \
100 $(INSTALL_DATA) $(srcdir)/$$file $(DEVINCDIR)/$$file; \
101 done
103 gcc-include: INCDIR := gcc
104 gcc-include: gcc-include-comp.stamp
106 gcc-include%.stamp: SFD/ahi_lib.sfd SFD/ahi_sub_lib.sfd \
107 $(CTARGETS) $(GCCTARGETS) $(AROSTARGETS)
108 # $(OS4TARGETS)
109 $(INSTALL) -d $(INCDIR)/clib $(INCDIR)/devices $(INCDIR)/libraries \
110 $(INCDIR)/defines $(INCDIR)/interfaces $(INCDIR)/inline $(INCDIR)/proto
112 for file in `cd $(srcdir)/C && find . -type f -not -path "*.svn/*"`; do \
113 $(INSTALL_DATA) $(srcdir)/C/$$file $(INCDIR)/$$file; \
114 done
116 $(INSTALL_DATA) C-clib-ahi_protos.h $(INCDIR)/clib/ahi_protos.h
117 $(INSTALL_DATA) C-clib-ahi_sub_protos.h $(INCDIR)/clib/ahi_sub_protos.h
118 $(INSTALL_DATA) C-inline-ahi.h $(INCDIR)/inline/ahi.h
119 $(INSTALL_DATA) C-inline-ahi_sub.h $(INCDIR)/inline/ahi_sub.h
120 $(INSTALL_DATA) C-defines-ahi.h $(INCDIR)/defines/ahi.h
121 $(INSTALL_DATA) C-defines-ahi_sub.h $(INCDIR)/defines/ahi_sub.h
122 # $(INSTALL_DATA) C-interfaces-ahi.h $(INCDIR)/interfaces/ahi.h
123 # $(INSTALL_DATA) C-interfaces-ahi_sub.h $(INCDIR)/interfaces/ahi_sub.h
124 $(INSTALL_DATA) C-proto-ahi.h $(INCDIR)/proto/ahi.h
125 $(INSTALL_DATA) C-proto-ahi_sub.h $(INCDIR)/proto/ahi_sub.h
126 touch $@
130 # Auto-remake autoconf stuff
131 ########################################
133 Makefile: Makefile.in ../config.status
134 (cd .. && ./config.status)
138 # Rules
139 ########################################
141 Asm-lvo-ahi_lib.i: SFD/ahi_lib.sfd
142 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=lvo
144 Asm-lvo-ahi_sub_lib.i: SFD/ahi_sub_lib.sfd
145 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=lvo
147 C-clib-ahi_protos.h: SFD/ahi_lib.sfd
148 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=clib
150 C-clib-ahi_sub_protos.h: SFD/ahi_sub_lib.sfd
151 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=clib
153 C-inline-ahi.h: SFD/ahi_lib.sfd
154 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=macros
156 C-inline-ahi_sub.h: SFD/ahi_sub_lib.sfd
157 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=macros
159 C-defines-ahi.h: SFD/ahi_lib.sfd
160 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=macros
162 C-defines-ahi_sub.h: SFD/ahi_sub_lib.sfd
163 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=macros
165 C-interfaces-ahi.h: SFD/ahi_lib.sfd
166 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=interface
168 C-interfaces-ahi_sub.h: SFD/ahi_sub_lib.sfd
169 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=interface
171 C-pragmas-ahi_pragmas.h: SFD/ahi_lib.sfd
172 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=pragmas
174 C-pragmas-ahi_sub_pragmas.h: SFD/ahi_sub_lib.sfd
175 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=pragmas
177 C-proto-ahi.h: SFD/ahi_lib.sfd
178 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=proto
180 C-proto-ahi_sub.h: SFD/ahi_sub_lib.sfd
181 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=proto
183 FD-ahi_lib.fd: SFD/ahi_lib.sfd
184 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=fd
186 FD-ahi_sub_lib.fd: SFD/ahi_sub_lib.sfd
187 $(SFDC) $(SFDC_TARGET) $^ --output=$@ --mode=fd