UNIXworkcode

1 # Platform independent part of make procedure for NEdit directory, 2 # included by machine specific makefiles. 3 # 4 5 OBJS = nedit.o file.o menu.o window.o selection.o search.o undo.o shift.o \ 6 help.o preferences.o tags.o userCmds.o shell.o regularExp.o macro.o \ 7 text.o textSel.o textDisp.o textBuf.o textDrag.o server.o highlight.o \ 8 highlightData.o interpret.o parse.o smartIndent.o regexConvert.o \ 9 windowTitle.o calltips.o server_common.o rangeset.o editorconfig.o \ 10 filter.o 11 12 XLTLIB = ../Xlt/libXlt.a 13 XMLLIB = ../Microline/XmL/libXmL.a 14 15 .c.o: 16 $(CC) -c -I../Microline -I../Xlt $(CFLAGS) -o $@ $< 17 18 all: xnedit xnc 19 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 xnedit: $(OBJS) ../util/libNUtil.a $(XMLLIB) $(XLTLIB) 23 $(CC) $(CFLAGS) -c linkdate.c -o linkdate.o 24 $(CC) $(CFLAGS) $(OBJS) linkdate.o \ 25 ../util/libNUtil.a $(LDFLAGS) $(XMLLIB) $(XLTLIB) $(LIBS) -o $@ 26 27 # Note LIBS isn't quite right here; it links unnecessarily against Motif 28 xnc: nc.o server_common.o ../util/libNUtil.a 29 $(CC) $(CFLAGS) nc.o server_common.o ../util/libNUtil.a $(LDFLAGS) $(LIBS) -o $@ 30 31 help.o: help.c 32 $(CC) $(CFLAGS) $(BIGGER_STRINGS) -c help.c -o $@ 33 34 version.h: .FORCE 35 ../doc/generate_version.sh version.h 36 37 smartIndent.o: smartIndent.c 38 $(CC) $(CFLAGS) $(BIGGER_STRINGS) -c smartIndent.c -o $@ 39 40 highlightData.o: highlightData.c 41 $(CC) $(CFLAGS) $(BIGGER_STRINGS) -c highlightData.c -o $@ 42 43 clean: 44 rm -f $(OBJS) xnedit xnc nc.o parse.c linkdate.o version.h 45 46 parse.c: parse.y 47 @echo "NOTE: Don't worry about 'command not found' errors here" 48 @echo " unless you have changed the parse.y file." 49 bison -o parse.c parse.y || ( yacc parse.y && mv y.tab.c parse.c ) || \ 50 cp parse_noyacc.c parse.c 51 52 .FORCE: 53 54 55 # Get the dependencies for all objects 56 include Makefile.dependencies 57