2 # Makefile.in for PlayTest
8 ########################################
12 top_srcdir
= @top_srcdir@
16 CDIR
= ${DISTDIR}/User
/C
19 STRIP
= @STRIP@ @STRIPFLAGS@
22 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
34 ########################################
42 ########################################
44 .PHONY
: all clean distclean maintainer-clean
install revup bindist
49 $(RM
) $(EXECUTABLE
) version.h
*.o
*.bak Makefile.dep
54 maintainer-clean
: distclean
57 $(INSTALL_PROGRAM
) $(EXECUTABLE
) $(PREFIX
)/C
/$(EXECUTABLE
)
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
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
)
84 ########################################
86 $(EXECUTABLE
): $(OBJECTS
)
87 $(CC
) $(LDFLAGS
) $^
$(LIBS
) -o
$@
90 version.h
: version.rev version.date
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)\"" >> $@
101 ########################################
103 SOURCES
= $(wildcard $(srcdir)/*.c
)
104 HEADERS
= $(wildcard $(srcdir)/*.h
)
106 #DEPENDENCIES = $(SOURCES) $(HEADERS)
114 Makefile.dep
: $(DEPENDENCIES
) version.h
116 -@
$(CC
) $(CPPFLAGS
) $(CFLAGS
) -MM
$(SOURCES
) > $@