1 # utils/Makefile.in --- xscreensaver, Copyright (c) 1997-2010 Jamie Zawinski.
2 # the `../configure' script generates `jwxyz/Makefile' from this file.
6 # But it's a bunch of function definitions that bear some resemblance to
7 # Xlib and that kinda sorta implement Xlib in terms of the native graphics
8 # substrate (Cocoa, OpenGL, GLES, Java).
17 datarootdir = @datarootdir@
24 DEPEND_FLAGS = @DEPEND_FLAGS@
25 DEPEND_DEFINES = @DEPEND_DEFINES@
29 INSTALL_PROGRAM = @INSTALL_PROGRAM@
30 INSTALL_DATA = @INSTALL_DATA@
31 INSTALL_DIRS = @INSTALL_DIRS@
35 INCLUDES_1 = -I$(srcdir) -I..
36 INCLUDES = $(INCLUDES_1) @INCLUDES@
38 SRCS = jwxyz-android.c jwxyz-cocoa.m jwxyz-common.c jwxyz-gl.c \
39 jwxyz-timers.c jwxyz.m jwzgles.c
41 HDRS = jwxyz-android.h jwxyz-cocoa.h jwxyz-timers.h jwxyz.h \
42 jwxyzI.h jwzgles.h jwzglesI.h
43 EXTRAS = README Makefile.in
45 TARFILES = $(EXTRAS) $(SRCS) $(HDRS) $(LOGOS)
51 install: install-program install-man
52 uninstall: uninstall-program uninstall-man
55 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
66 -rm -f Makefile TAGS *~ "#"*
68 # Adds all current dependencies to Makefile
70 $(DEPEND) -s '# DO NOT DELETE: updated by make depend' \
72 $(INCLUDES) $(DEFS) $(DEPEND_DEFINES) $(CFLAGS) $(X_CFLAGS) -- \
75 # Adds some dependencies to Makefile.in -- not totally accurate, but pretty
76 # close. This excludes dependencies on files in /usr/include, etc. It tries
77 # to include only dependencies on files which are themselves a part of this
80 @echo updating dependencies in `pwd`/Makefile.in... ; \
82 -s '# DO NOT DELETE: updated by make distdepend' $(DEPEND_FLAGS) -- \
83 $(INCLUDES_1) $(DEFS) $(DEPEND_DEFINES) $(CFLAGS) $(X_CFLAGS) -- \
84 $(SRCS) 2>/dev/null | \
87 awk '/^# .*Makefile.in ---/,/^# DO .*distdepend/' < Makefile.in ; \
89 -e 's@ \./@ @g;s@ /[^ ]*@@g;/^.*:$$/d' \
90 -e 's@ \([^$$]\)@ $$(srcdir)/\1@g' \
91 -e 's@ $$(srcdir)/\(.*config.h\)@ \1@g' ; \
93 ) > /tmp/distdepend.$$$$ && \
94 mv /tmp/distdepend.$$$$ Makefile.in
98 find $(srcdir) -name '*.[chly]' -print | xargs etags -a
104 # How we build object files in this directory.
106 $(CC) -c $(INCLUDES) $(DEFS) $(CPPFLAGS) $(CFLAGS) $(X_CFLAGS) $<
109 # Rules for generating the VMS makefiles on Unix, so that it doesn't have to
112 VMS_AXP_COMPILE=$$ CC/DECC/PREFIX=ALL/DEFINE=(VMS,HAVE_CONFIG_H)/INCL=([],[-])
114 compile_axp.com: Makefile.in
115 @echo generating $@ from $<... ; \
116 ( ( for c in $(SRCS) vms-*.c ; do \
117 c=`echo $$c | tr a-z A-Z` ; \
118 echo "$(VMS_AXP_COMPILE) $$c" ; \
121 echo '$$ lib/cre utils.olb_axp' ; \
122 echo '$$ lib utils.olb_axp *.obj' ; \
123 echo '$$! delete/noconf *.obj;' ; \
126 compile_decc.com: compile_axp.com
127 @echo generating $@ from $<... ; \
128 sed 's/axp/decc/g' < $< > $@
130 distdepend:: compile_axp.com compile_decc.com
133 ##############################################################################
135 # DO NOT DELETE: updated by make distdepend
137 jwxyz-android.o: ../config.h
138 jwxyz-common.o: ../config.h
139 jwxyz-timers.o: ../config.h
140 jwzgles.o: ../config.h