grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / devs / AHI / AHI-Handler / Makefile.in
blob05b17f1c131a6c31ba6cda993366868ac2ff6174
2 # Makefile.in for the AHI-Handler DOS device.
7 # Autoconfig stuff
8 ########################################
10 @SET_MAKE@
12 top_srcdir = @top_srcdir@
13 srcdir = @srcdir@
14 PREFIX = @prefix@
15 DISTDIR = @DISTDIR@
16 DOSDRVDIR = ${DISTDIR}/User/Devs/DOSDrivers
17 LDIR = ${DISTDIR}/User/L
19 build_os = @build_os@
21 CC = @CC@
22 STRIP = @STRIP@ @STRIPFLAGS@
24 INSTALL = @INSTALL@
25 INSTALL_PROGRAM = @INSTALL_PROGRAM@
26 INSTALL_DATA = @INSTALL_DATA@
28 CPPFLAGS = @CPPFLAGS@
29 CFLAGS = @CFLAGS@ @CFLAG_RESIDENT@
30 LDFLAGS = @LDFLAGS@ @LDFLAG_RESIDENT@
31 LIBS = @LIBS@
33 VPATH = @srcdir@
37 # Files
38 ########################################
40 OBJECTS = main.o
41 EXECUTABLE = AHI-Handler
45 # Targets
46 ########################################
48 .PHONY: all clean distclean maintainer-clean install revup bindist
50 all: $(EXECUTABLE)
52 clean:
53 $(RM) $(EXECUTABLE) version.h *.o Makefile.dep
55 distclean: clean
56 $(RM) Makefile
58 maintainer-clean: distclean
60 install: all
61 $(INSTALL_PROGRAM) $(EXECUTABLE) $(PREFIX)/L/$(EXECUTABLE)
63 revup:
64 @rev=`cat $(srcdir)/version.rev` && echo `expr $$rev + 1` > $(srcdir)/version.rev
65 @date +%d.%m.%y > $(srcdir)/version.date
66 @echo -n "New revision: "
67 @cat $(srcdir)/version.rev
69 bindist: all
70 $(INSTALL) -d $(LDIR) $(DOSDRVDIR)
71 $(INSTALL_PROGRAM) $(EXECUTABLE) $(LDIR)/$(EXECUTABLE)
72 $(STRIP) $(LDIR)/$(EXECUTABLE)
73 $(INSTALL_DATA) ${srcdir}/AUDIO $(DOSDRVDIR)
74 $(INSTALL_DATA) ${srcdir}/AUDIO.info $(DOSDRVDIR)
75 $(INSTALL_DATA) ${srcdir}/AUDIO.MWB.info $(DOSDRVDIR)
81 # Auto-remake autoconf stuff
82 ########################################
84 Makefile: Makefile.in ../config.status
85 (cd .. && ./config.status)
90 # Rules
91 ########################################
93 $(EXECUTABLE): $(OBJECTS)
94 $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
97 version.h: version.rev version.date
98 @echo Creating $@
99 @ver=`cat $(top_srcdir)/version.ver` \
100 rev=`cat $(srcdir)/version.rev` \
101 date=`cat $(srcdir)/version.date` && \
102 echo "#define VERSION $$ver" > $@ && \
103 echo "#define REVISION $$rev" >> $@ && \
104 echo "#define VERS \"$$ver.$$rev ($$date)\"" >> $@
107 # Dependencies
108 ########################################
110 SOURCES = $(wildcard $(srcdir)/*.c)
111 HEADERS = $(wildcard $(srcdir)/*.h)
113 #DEPENDENCIES = $(SOURCES) $(HEADERS)
115 .PHONY: depend
117 depend:
118 $(RM) Makefile.dep
119 $(MAKE) Makefile.dep
121 Makefile.dep: $(DEPENDENCIES) version.h
122 @echo Making $@
123 -@$(CC) $(CPPFLAGS) $(CFLAGS) -MM $(SOURCES) > $@
125 include Makefile.dep