Makefile.am 3.23 KB
Newer Older
1
# $Id$ $Revision$
2 3
## Process this file with automake to produce Makefile.in

4
SUBDIRS = ws os dot2l examples
5

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
# lefty build parameters
#not useful / old:
#  FEATURE_CS          coshell support
#  FEATURE_NETSCAPE    build lefty as a netscape plugin
#  FEATURE_RUSAGE      print rusage stats on exit
#  FEATURE_VFORK       use vfork instead of fork
#  FEATURE_GMAP        build performer version of lefty (source in lefty3d)
#  FEATURE_MESAGL      assume MesaGL instead of SGI's OpenGL for GMAP
# FEATURE_MINTSIZE     use int instead of short to hold object sizes.
#                      allows for larger objects (strings, hash tables, etc.)
# FEATURE_MS           assume windows system calls (as opposed to UNIX)
#                      to use when building on ms windows without UWIN
# FEATURE_X11          assume X11 graphics calls
# FEATURE_BACKINGSTORE ask X server to use backing store for canvas
# FEATURE_NEXTAW       when linking with -lnextaw a widget lib ala NeXT
# FEATURE_XAW3D        when linking with -lXaw3d a nicer looking widget lib
# FEATURE_WIN32        assume WIN32 graphics calls
# FEATURE_DOT          when linking in the dot2l code, a graph parser

leftydir = $(pkgdatadir)/lefty
pdfdir = $(pkgdatadir)/doc/pdf

erg's avatar
erg committed
28 29 30 31 32
if WITH_WIN32
AM_CPPFLAGS = \
	-I$(top_srcdir)/cmd/lefty/ws/mswin32 \
	-I$(top_srcdir)/cmd/lefty/os/mswin32 \
	-I$(top_srcdir)/cmd/lefty/dot2l @XAW_INCLUDES@
33

34
AM_CFLAGS = @X_CFLAGS@
erg's avatar
erg committed
35
else
36
AM_CPPFLAGS = \
37 38 39
	-I$(top_srcdir)/cmd/lefty/ws/x11 \
	-I$(top_srcdir)/cmd/lefty/os/unix \
	-I$(top_srcdir)/cmd/lefty/dot2l @XAW_INCLUDES@
40

41
AM_CFLAGS = -DLEFTYDATADIR=\"$(leftydir)\" @X_CFLAGS@
42 43
endif

44
noinst_HEADERS = code.h common.h display.h exec.h g.h gfxview.h internal.h \
45
	leftyio.h lex.h mem.h parse.h str.h tbl.h txtview.h
46

47
if WITH_X
48
if WITH_XAW
49 50
bin_PROGRAMS = lefty
endif
51
endif
52 53 54
if WITH_WIN32
bin_PROGRAMS = lefty
endif
55

56 57 58
man_MANS = lefty.1
pdf_DATA = lefty.1.pdf

59
lefty_DATA = lefty.psp
60 61 62 63 64 65 66 67

lefty_SOURCES = code.c common.c display.c exec.c g.c gfxview.c internal.c \
	lefty.c lex.c mem.c parse.c str.c tbl.c txtview.c

#
# NB. -lXaw must be before -lXt or strange inability-to-get-mouse-focus
# problems can occur on some systems.
#
68
if WITH_WIN32
69
lefty_LDADD = lefty.res $(top_builddir)/cmd/lefty/dot2l/libdot2l.la \
70 71 72
	$(top_builddir)/cmd/lefty/ws/mswin32/libws.la \
	$(top_builddir)/cmd/lefty/os/mswin32/libos.la \
	-luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 @MATH_LIBS@
73

ellson's avatar
ellson committed
74 75 76 77 78
if RC_IS_RC
lefty.res : ws/mswin32/lefty.rc
	rc -l 0x409 -Iws/mswin32 '-IC:\\progra~1\\microsoft visual studio 8\\vc\\PlatformSDK\\include' -DNDEBUG -fo lefty.res ws/mswin32/lefty.rc
else
lefty.res : ws/mswin32/lefty.rc
79
	$(RC) -l 0x409 -I$(top_srcdir)/cmd/lefty/ws/mswin32 -DNDEBUG -Ocoff -o lefty.res $(top_srcdir)/cmd/lefty/ws/mswin32/lefty.rc
ellson's avatar
ellson committed
80
endif
81

ellson's avatar
ellson committed
82 83 84 85 86 87 88 89 90
else
lefty_LDADD = $(top_builddir)/cmd/lefty/dot2l/libdot2l.la \
	$(top_builddir)/cmd/lefty/ws/x11/libws.la \
	$(top_builddir)/cmd/lefty/ws/x11/libfilereq/libfilereq.la \
	$(top_builddir)/cmd/lefty/os/unix/libos.la \
	@X_LIBS@ @XAW_LIBS@ @X_PRE_LIBS@ @XPM_LIBS@ \
	-lXt -lXmu -lXext -lX11 @SOCKET_LIBS@ @MATH_LIBS@
endif

91 92
lefty.1.pdf: $(srcdir)/lefty.1
	- @GROFF@ -Tps -man $(srcdir)/lefty.1 | @PS2PDF@ - - >lefty.1.pdf
93

94
EXTRA_DIST = $(lefty_DATA) $(man_MANS) $(pdf_DATA) lefty.vcxproj* colors.txt aix_mods cs2l/*
95

96
DISTCLEANFILES = $(pdf_DATA)