File: Makefile.common

package info (click to toggle)
nedit 1%3A5.5-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 7,124 kB
  • ctags: 6,957
  • sloc: ansic: 92,920; xml: 1,427; yacc: 621; makefile: 342; awk: 40; sh: 10
file content (51 lines) | stat: -rw-r--r-- 1,778 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# $Id: Makefile.common,v 1.17 2004/03/21 14:25:56 tksoh Exp $
# Platform independent part of make procedure for NEdit directory, 
# included by machine specific makefiles.
#

OBJS =	nedit.o file.o menu.o window.o selection.o search.o undo.o shift.o \
	help.o preferences.o tags.o userCmds.o shell.o regularExp.o macro.o \
	text.o textSel.o textDisp.o textBuf.o textDrag.o server.o highlight.o \
	highlightData.o interpret.o parse.o smartIndent.o regexConvert.o \
	rbTree.o windowTitle.o calltips.o server_common.o rangeset.o

XLTLIB = ../Xlt/libXlt.a
XMLLIB = ../Microline/XmL/libXmL.a

.c.o:
	$(CC) -c -I../Microline -I../Xlt $(CFLAGS) -o $@ $<

all: nedit nc

# Note there is no depedency for linkdate.c/o.  This is intentional,
# we only want natural rebuilds to regenerate the link date.
nedit: $(OBJS) ../util/libNUtil.a $(XMLLIB) $(XLTLIB)
	$(CC) $(CFLAGS) -c linkdate.c
	$(CC) $(CFLAGS) $(OBJS) linkdate.o $(XMLLIB) \
	 $(XLTLIB) ../util/libNUtil.a $(LIBS) -o $@

# Note LIBS isn't quite right here; it links unnecessarily against Motif
nc: nc.o server_common.o ../util/libNUtil.a
	$(CC) $(CFLAGS) nc.o server_common.o ../util/libNUtil.a $(LIBS) -o $@

help.o: help.c
	$(CC) $(CFLAGS) $(BIGGER_STRINGS) -c help.c -o $@

smartIndent.o: smartIndent.c
	$(CC) $(CFLAGS) $(BIGGER_STRINGS) -c smartIndent.c -o $@

highlightData.o: highlightData.c
	$(CC) $(CFLAGS) $(BIGGER_STRINGS) -c highlightData.c -o $@

clean:
	rm -f $(OBJS) nedit nc nc.o parse.c linkdate.o

parse.c: parse.y
	@echo "NOTE:  Don't worry about 'command not found' errors here"
	@echo "       unless you have changed the parse.y file."
	bison -o parse.c parse.y || ( yacc parse.y && mv y.tab.c parse.c ) || \
		cp parse_noyacc.c parse.c


# Get the dependencies for all objects
include Makefile.dependencies