]>
Commit | Line | Data |
---|---|---|
ea0caf4a | 1 | # $Id$ |
2 | ||
3 | SHELL=/bin/sh | |
4 | @SET_MAKE@ | |
5 | ||
6 | srcdir=@srcdir@ | |
7 | VPATH=@srcdir@ | |
8 | SRCTOP=@top_srcdir@ | |
a816420b | 9 | top_builddir=@top_builddir@ |
ea0caf4a | 10 | BUILDTOP=../.. |
11 | ||
12 | CC=@CC@ | |
13 | CPPFLAGS=@CPPFLAGS@ | |
14 | CFLAGS=@CFLAGS@ | |
15 | DEFS=@DEFS@ | |
16 | ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) $(DEFS) | |
a816420b | 17 | LIBTOOL=@LIBTOOL@ |
ea0caf4a | 18 | |
a816420b | 19 | .SUFFIXES: .lo |
ea0caf4a | 20 | |
a816420b | 21 | .c.lo: |
22 | $(LIBTOOL) --mode=compile $(CC) -c $(ALL_CFLAGS) $< | |
23 | ||
24 | all: moira_schema.h moira_schema.c moira_schema.lo | |
ea0caf4a | 25 | |
26 | clean: | |
a816420b | 27 | $(LIBTOOL) --mode=clean rm -f moira_schema.h moira_schema.c moira_schema.lo |
ea0caf4a | 28 | |
0bd2b68c | 29 | cleandir distclean: clean |
30 | rm -f Makefile | |
31 | ||
ea0caf4a | 32 | depend: moira_schema.c moira_schema.h |
33 | ||
34 | install: | |
35 | ||
36 | moira_schema.h: $(srcdir)/schema.sql | |
37 | tr '[a-z]' '[A-Z]' < $(srcdir)/schema.sql | \ | |
38 | awk -f $(srcdir)/doschema.awk > moira_schema.h | |
39 | ||
40 | moira_schema.c: schema.sql | |
41 | awk -f $(srcdir)/doschema.awk < $(srcdir)/schema.sql > moira_schema.c |