1 # Halibut master makefile
3 # Requires a compiler with -MD support, currently
5 # `make' from top level will build in directory `build'
6 # `make BUILDDIR=foo' from top level will build in directory foo
16 @
test -d
$(BUILDDIR
) || mkdir
$(BUILDDIR
)
17 @make
-C
$(BUILDDIR
) -f ..
/Makefile REALBUILD
=yes
19 @
test -d
$(BUILDDIR
) || mkdir
$(BUILDDIR
)
20 @make
-C
$(BUILDDIR
) -f ..
/Makefile spotless REALBUILD
=yes
22 @
test -d
$(BUILDDIR
) || mkdir
$(BUILDDIR
)
23 @make
-C
$(BUILDDIR
) -f ..
/Makefile
clean REALBUILD
=yes
26 # The `real' makefile part.
49 VDEF
:= -DVERSION
=\"$(VER
)\"
54 MODULES
:= main malloc ustring error help licence version misc tree234
55 MODULES
+= input keywords contents index style biblio
56 MODULES
+= bk_text bk_xhtml bk_whlp
59 OBJECTS
:= $(addsuffix .o
,$(MODULES
))
60 DEPS
:= $(addsuffix .d
,$(MODULES
))
63 $(CC
) $(LFLAGS
) -o halibut
$(OBJECTS
) $(LIBS
)
66 $(CC
) $(CFLAGS
) -MD
-c
$<
69 $(CC
) $(VDEF
) -MD
-c
$(SRC
)version.c
75 rm -f
*.o halibut core
77 FORCE
: # phony target to force version.o to be rebuilt every time