ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/BASS_parse/Makefile
Revision: 117
Committed: Tue Sep 24 22:10:55 2002 UTC (21 years, 9 months ago) by mmeineke
File size: 988 byte(s)
Log Message:
fixed allot of warnings, and adde the molecule

File Contents

# User Rev Content
1 mmeineke 117 #CC = /usr/local/bin/gcc
2     CC = icc
3 mmeineke 10 YC = bison
4     LC = flex
5     LIBDIR = ../../../lib
6     OBJECTS = BASS.lex.o BASS_parse.o make_nodes.o interface.o parse_tree.o \
7     BASS.tab.o
8 mmeineke 117 #CFLAGS = -s -static -O3
9     CFLAGS = -mp -tpp6 -O3
10 mmeineke 10
11    
12    
13     all: $(LIBDIR)/libmdtools.a
14    
15     $(LIBDIR)/libmdtools.a: $(OBJECTS)
16     ar -crsv $@ $?
17    
18     parse_tree.o: interface.h node_list.h parse_tree.h parse_tree.c
19     $(CC) $(CFLAGS) -c parse_tree.c
20    
21     interface.o: node_list.h interface.h interface.c
22     $(CC) $(CFLAGS) -c interface.c
23    
24     make_nodes.o: node_list.h make_nodes.h make_nodes.c
25     $(CC) $(CFLAGS) -c make_nodes.c
26    
27     BASS_parse.o: BASS_parse.h BASS.tab.h BASS_parse.c
28     $(CC) $(CFLAGS) -c BASS_parse.c
29    
30     BASS.lex.o: BASS.tab.h BASS_parse.h BASS.lex.c
31     $(CC) $(CFLAGS) -c BASS.lex.c
32    
33     BASS.tab.o: BASS.tab.c BASS.tab.h node_list.h make_nodes.h
34     $(CC) $(CFLAGS) -c BASS.tab.c
35    
36     BASS.lex.c: BASS.l
37     $(LC) -oBASS.lex.c BASS.l
38    
39     BASS.tab.h: BASS.y
40     $(YC) -d BASS.y
41    
42     BASS.tab.c: BASS.y
43     $(YC) -d BASS.y
44    
45     clean:
46     rm *.o *~ BASS.lex.c BASS.tab.h BASS.tab.c