[go: up one dir, main page]

Menu

[9c90d7]: / util / Makefile.am  Maximize  Restore  History

Download this file

47 lines (36 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
## -*- Makefile -*-
##
##
lib_LIBRARIES= libddutil.a libddutil-dbg.a
libddutil_a_SOURCES= ${SRCS} utdatabase.c utdatabase.h
libddutil_dbg_a_SOURCES= ${SRCS} utdatabase.c utdatabase.h
SRCS= ddutil.h util.c utmanage.c utmem.c utmem.h utpersist.c utpersist.h utrand.c uttypes.h utoslayer.c
include_HEADERS= ddutil.h utdatabase.h utmem.h utpersist.h uttypes.h
# used by windows -- do I need to do something for cygwin/mingw here???
EXTRA_DIST= utnt.c
libddutil_a_CPPFLAGS= -DUT_USE_UTDATABASE_H
libddutil_dbg_a_CPPFLAGS= -DUT_USE_UTDATABASE_H -DDD_DEBUG
# hopefully this won't cause a chicken and egg problem...
DDR= ../src/datadraw
utdatabase.h utdatabase.c: $(srcdir)/DatadrawUtil.dd
if test -f ${DDR} ; then \
${DDR} -s utdatabase.c -h utdatabase.h $(srcdir)/DatadrawUtil.dd ; \
else \
echo "${DDR} has not been built yet. Using pre-built $@" ; \
fi
# should figure out how to appropriately pass down the different flags to a
# suffix rule. This may require exploiting some GNU make specific features
# which would lock the user into GNU make. That is probably not too bad of
# a thing to do since many users have already been forced into GNU make by
# other software
# SUFFIXES
#.dd.c:
# if test -x ${DDR} ; then \
# ${DDR} -s $@ -h $ $@.h $(srcdir)/DatadrawUtil.dd ; \
# else \
# echo "WARNING: DatadrawUtil.dd has changed making dvdatabase.c and dvdatabase.h out of date" ; \
# echo " However you have not finished building datadraw yet. So you may want to" ; \
# echo " build again a 2nd time after your build (hopefully) finishes." ; \
# fi
# be sure to include the .dd file in the distribution
EXTRA_DIST+= DatadrawUtil.dd