Fix our use of $em_tab_dist after it was changed to 0 for 'turned of'.
[nedit.git] / source / Makefile.common
blob477b31c829040eccd2861d9b12567ea502e4089a
1 # $Id: Makefile.common,v 1.17 2004/03/21 14:25:56 tksoh Exp $
2 # Platform independent part of make procedure for NEdit directory, 
3 # included by machine specific makefiles.
6 OBJS =  nedit.o file.o menu.o window.o selection.o search.o undo.o shift.o \
7         help.o preferences.o tags.o userCmds.o shell.o regularExp.o macro.o \
8         text.o textSel.o textDisp.o textBuf.o textDrag.o server.o highlight.o \
9         highlightData.o interpret.o parse.o smartIndent.o regexConvert.o \
10         rbTree.o windowTitle.o calltips.o server_common.o rangeset.o
12 XLTLIB = ../Xlt/libXlt.a
13 XMLLIB = ../Microline/XmL/libXmL.a
15 .c.o:
16         $(CC) -c -I../Microline -I../Xlt $(CFLAGS) -o $@ $<
18 all: nedit nc
20 # Note there is no depedency for linkdate.c/o.  This is intentional,
21 # we only want natural rebuilds to regenerate the link date.
22 nedit: $(OBJS) ../util/libNUtil.a $(XMLLIB) $(XLTLIB)
23         $(CC) $(CFLAGS) -c linkdate.c
24         $(CC) $(CFLAGS) $(OBJS) linkdate.o $(XMLLIB) \
25          $(XLTLIB) ../util/libNUtil.a $(LIBS) -o $@
27 # Note LIBS isn't quite right here; it links unnecessarily against Motif
28 nc: nc.o server_common.o ../util/libNUtil.a
29         $(CC) $(CFLAGS) nc.o server_common.o ../util/libNUtil.a $(LIBS) -o $@
31 help.o: help.c
32         $(CC) $(CFLAGS) $(BIGGER_STRINGS) -c help.c -o $@
34 smartIndent.o: smartIndent.c
35         $(CC) $(CFLAGS) $(BIGGER_STRINGS) -c smartIndent.c -o $@
37 highlightData.o: highlightData.c
38         $(CC) $(CFLAGS) $(BIGGER_STRINGS) -c highlightData.c -o $@
40 clean:
41         rm -f $(OBJS) nedit nc nc.o parse.c linkdate.o
43 parse.c: parse.y
44         @echo "NOTE:  Don't worry about 'command not found' errors here"
45         @echo "       unless you have changed the parse.y file."
46         bison -o parse.c parse.y || ( yacc parse.y && mv y.tab.c parse.c ) || \
47                 cp parse_noyacc.c parse.c
50 # Get the dependencies for all objects
51 include Makefile.dependencies