Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / AHI / Examples / Device / PlayTest / Makefile.in
blob778c2fbd89e1558cc7d0c90cbca33dc6386d7635
2 # Makefile.in for PlayTest
7 # Autoconfig stuff
8 ########################################
10 @SET_MAKE@
12 top_srcdir = @top_srcdir@
13 srcdir = @srcdir@
14 PREFIX = @prefix@
15 DISTDIR = @DISTDIR@
16 CDIR = ${DISTDIR}/User/C
18 CC = @CC@
19 STRIP = @STRIP@ @STRIPFLAGS@
21 INSTALL = @INSTALL@
22 INSTALL_PROGRAM = @INSTALL_PROGRAM@
24 CPPFLAGS = @CPPFLAGS@
25 CFLAGS = @CFLAGS@
26 LDFLAGS = @LDFLAGS@
27 LIBS = @LIBS@
29 VPATH = @srcdir@
33 # Files
34 ########################################
36 OBJECTS = PlayTest.o
37 EXECUTABLE = PlayTest
41 # Targets
42 ########################################
44 .PHONY: all clean distclean maintainer-clean install revup bindist
46 all: $(EXECUTABLE)
48 clean:
49 $(RM) $(EXECUTABLE) version.h *.o *.bak Makefile.dep
51 distclean: clean
52 $(RM) Makefile
54 maintainer-clean: distclean
56 install: all
57 $(INSTALL_PROGRAM) $(EXECUTABLE) $(PREFIX)/C/$(EXECUTABLE)
59 revup:
60 @rev=`cat $(srcdir)/version.rev` && echo `expr $$rev + 1` > $(srcdir)/version.rev
61 @date +%d.%m.%y > $(srcdir)/version.date
62 @echo -n "New revision: "
63 @cat $(srcdir)/version.rev
65 bindist: all
66 $(INSTALL) -d $(CDIR)
67 $(INSTALL_PROGRAM) $(EXECUTABLE) $(CDIR)/$(EXECUTABLE)
68 $(STRIP) $(CDIR)/$(EXECUTABLE)
74 # Auto-remake autoconf stuff
75 ########################################
77 Makefile: Makefile.in ../../../config.status
78 (cd ../../.. && ./config.status)
83 # Rules
84 ########################################
86 $(EXECUTABLE): $(OBJECTS)
87 $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
90 version.h: version.rev version.date
91 @echo Creating $@
92 @ver=`cat $(top_srcdir)/version.ver` \
93 rev=`cat $(srcdir)/version.rev` \
94 date=`cat $(srcdir)/version.date` && \
95 echo "#define VERSION $$ver" > $@ && \
96 echo "#define REVISION $$rev" >> $@ && \
97 echo "#define VERS \"$$ver.$$rev ($$date)\"" >> $@
100 # Dependencies
101 ########################################
103 SOURCES = $(wildcard $(srcdir)/*.c)
104 HEADERS = $(wildcard $(srcdir)/*.h)
106 #DEPENDENCIES = $(SOURCES) $(HEADERS)
108 .PHONY: depend
110 depend:
111 $(RM) Makefile.dep
112 $(MAKE) Makefile.dep
114 Makefile.dep: $(DEPENDENCIES) version.h
115 @echo Making $@
116 -@$(CC) $(CPPFLAGS) $(CFLAGS) -MM $(SOURCES) > $@
118 include Makefile.dep