Mercurial > hg > xemacs-beta
diff etc/tests/external-widget/Makefile @ 2:ac2d302a0011 r19-15b2
Import from CVS: tag r19-15b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:46:35 +0200 |
parents | |
children | 4b173ad71786 03ab78e48ef6 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/etc/tests/external-widget/Makefile Mon Aug 13 08:46:35 2007 +0200 @@ -0,0 +1,30 @@ +CFLAGS += -Xc -g -DTOOLTALK +EMACSHOME = ../../.. +EMACSLIBDIR = $(EMACSHOME)/editor/src +EMACSINCLUDEDIR = $(EMACSHOME)/editor/src +MOTIFHOME = /opt/SUNWmotif + +CPPFLAGS += -I$(OPENWINHOME)/include +LDFLAGS += -L$(OPENWINHOME)/lib -R$(OPENWINHOME)/lib + +CPPFLAGS += -I$(MOTIFHOME)/include +LDFLAGS += -L$(MOTIFHOME)/lib -R$(MOTIFHOME)/lib + +CPPFLAGS += -I$(EMACSINCLUDEDIR) +LDFLAGS += -L$(EMACSLIBDIR) + +LDFLAGS += -R$(OPENWINHOME)/lib:$(EMACSLIBDIR) -g + +TM_OBJS = test-ew-motif.o +TXL_OBJS = test-ew-xlib.o +MOTIF_LIBS = -Bstatic -lextcli_Xm -Bdynamic -lXm -lXt -ltt -lX11 -lgen -lm +XLIB_LIBS = -Bstatic -lextcli_Xlib -Bdynamic -ltt -lX11 -lgen -lm + +all: test-ew-motif + +test-ew-motif: $(TM_OBJS) + $(CC) -o $@ $(LDFLAGS) $(TM_OBJS) $(MOTIF_LIBS) + +test-ew-xlib: $(TXL_OBJS) + $(CC) -o $@ $(LDFLAGS) $(TXL_OBJS) $(XLIB_LIBS) +