-
Notifications
You must be signed in to change notification settings - Fork 170
Expand file tree
/
Copy pathmakefile.gcc
More file actions
executable file
·38 lines (24 loc) · 916 Bytes
/
makefile.gcc
File metadata and controls
executable file
·38 lines (24 loc) · 916 Bytes
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
.SUFFIXES:
.SUFFIXES: .c .cpp .o .exe .lxc .flex
EXES=xmltweet.exe xmlwiki.exe trec.exe tparse.exe parsevw.exe tparse2.exe nnparse.exe
OBJS=newparse.o utils.o gzstream.o
.SECONDARY: xmltweet.lxc xmlwiki.lxc trec.lxc nnparse.lxc
all: $(EXES)
.flex.lxc:
flex -o $@ $<
tparse.exe: gzstream.o utils.o tparse.o utils.h
$(LD) -o tparse.exe tparse.o utils.o gzstream.o $(LINK_OPTS)
tparse2.exe: gzstream.o utils.o tparse2.o utils.h
$(LD) -o tparse2.exe tparse2.o utils.o gzstream.o $(LINK_OPTS)
parsevw.exe: gzstream.o utils.o parsevw.o utils.h
$(LD) -o parsevw.exe parsevw.o utils.o gzstream.o $(LINK_OPTS)
.o.exe: $(OBJS)
$(LD) -o $@ $(OBJS) $< $(LINK_OPTS)
.cpp.o: utils.h gzstream.h
$(CPP) $(CPPFLAGS) $(CC_OPTS) -o $@ -c $<
.lxc.o:
$(CC) $(CC_OPTS) -DYY_NO_UNISTD_H -o $@ -c -x c $<
$(EXES): $(OBJS)
gzstream.o: gzstream.h
clean:
rm -f $(EXES) *.o *.lxc