• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonrubyphpgameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

Demonstration of groff .psbb request handling code, for EPS and PDF input files


Commit MetaInfo

修訂e975dbad116e460acb9e5fbaa842bc62621b09c9 (tree)
時間2017-10-16 02:49:02
作者Keith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Add support for out-of-source builds.

* GNUmakefile (srcdir): Define it; default is "."
(vpath) [%.l, %.y]: Locate them, by reference to $srcdir
(vpath) [%.c, %.cpp, %.h]: Locate them in $srcdir, or $srcdir/libgroff
(CPPFLAGS): Incrementally add $srcdir and $srcdir/libgroff includes.
(CFLAGS, CXXFLAGS): Remove include path specifications.

Change Summary

差異

--- a/GNUmakefile
+++ b/GNUmakefile
@@ -23,16 +23,23 @@
2323 #
2424 psbb:
2525
26+srcdir = .
27+vpath %.l ${srcdir}
28+vpath %.y ${srcdir}
29+
2630 # For convenience, we've placed a necessary subset of libgroff sources
2731 # and headers in our local libgroff subdirectory; ensure that make, and
2832 # the C/C++ compilers can see them.
2933 #
30-vpath %.c ./libgroff
31-vpath %.cpp ./libgroff
32-vpath %.h ./libgroff
34+vpath %.c ${srcdir} ${srcdir}/libgroff
35+vpath %.cpp ${srcdir} ${srcdir}/libgroff
36+vpath %.h ${srcdir} ${srcdir}/libgroff
37+
38+CFLAGS = -g -O2
39+CXXFLAGS = -g -O2
40+
41+CPPFLAGS += -I ${srcdir} -I ${srcdir}/libgroff
3342
34-CFLAGS = -g -O2 -I./libgroff
35-CXXFLAGS = -g -O2 -I./libgroff
3643
3744 # GNU make's default $(YACC) rule doesn't satisfy the dependencies we
3845 # would like, so we specify our own alternative rule.
@@ -53,6 +60,7 @@ libgroff.a: error.o errarg.o itoa.o fatal.o
5360 psbb: t-psbb.o psbblex.o psbb.tab.o libgroff.a
5461 $(CXX) $(LDFLAGS) $(TARGET_ARCH) $^ -o $@
5562
63+
5664 # Object file dependencies: GCC could generate these automatically, but
5765 # this is simpler, in this trivial instance.
5866 #