JPRED-2 Add alscript to the Git repository
[jpred.git] / sources / alscript / src / makefile
1 # Makefile for ALSCRIPT, msf2blc and clus2blc programs
2 #
3 # These programs require an ANSI C compiler
4 #
5 # This makefile is for gcc linux computers it should need only 
6 # minor modifications to work on other computer types, e.g. Sun
7 # Dec etc.  This also appears to work under cygwin, though you 
8 # have to use the --unix flag to make.
9
10 #
11 CC = gcc
12 MACHINE = linux
13 CFLAGS = -O2 -I./ -I../gjutil/
14 LFLAGS =  -o
15 ALOBJS = alscript.o alps.o ../gjutil/gjutil.o agetbloc.o ckdd.o ../gjutil/gjtimes.o
16 #
17 PROGS = alscript msf2blc clus2blc alsnum fast2blc
18
19 all: $(PROGS)
20
21 alscript: $(ALOBJS)
22         $(CC) $(CFLAGS) $(ALOBJS) $(LFLAGS) alscript
23 msf2blc: msf2blc.o ../gjutil/gjutil.o ../gjutil/gjtimes.o
24         $(CC) $(CFLAGS) msf2blc.o ../gjutil/gjutil.o ../gjutil/gjtimes.o  $(LFLAGS) msf2blc
25 clus2blc: clus2blc.o ../gjutil/gjutil.o ../gjutil/gjtimes.o 
26         $(CC) $(CFLAGS) clus2blc.o ../gjutil/gjutil.o ../gjutil/gjtimes.o  $(LFLAGS) clus2blc
27 fast2blc: fast2blc.o ../gjutil/gjutil.o ../gjutil/gjtimes.o
28         $(CC) $(CFLAGS) fast2blc.o ../gjutil/gjutil.o ../gjutil/gjtimes.o $(LFLAGS) fast2blc
29 alsnum: alsnum.o ../gjutil/gjutil.o agetbloc.o ../gjutil/gjtimes.o 
30         $(CC) $(CFLAGS) alsnum.o ../gjutil/gjutil.o agetbloc.o ../gjutil/gjtimes.o $(LFLAGS) alsnum
31
32
33 alscript.o: alscript.c array.h ../gjutil/gjutil.h version.h
34         $(CC) $(CFLAGS) -c alscript.c
35
36 alps.o: alps.c array.h ../gjutil/gjutil.h version.h
37         $(CC) $(CFLAGS) -c alps.c
38
39 agetbloc.o: agetbloc.c array.h ../gjutil/gjutil.h
40         $(CC) $(CFLAGS) -c agetbloc.c
41
42 ../gjutil/gjutil.o: ../gjutil/gjutil.c ../gjutil/gjutil.h ../gjutil/gjtimes.o
43         (cd ../gjutil; $(CC) $(CFLAGS) -c gjutil.c gjtimes.o ; cd ../src)
44
45 ../gjutil/gjtimes.o: ../gjutil/gjtimes.c ../gjutil/gjtimes.h
46         (cd ../gjutil; $(CC) $(CFLAGS) -c gjtimes.c ; cd ../src)
47
48 clus2blc.o: clus2blc.c array.h ../gjutil/gjutil.h defaults.h
49         $(CC) $(CFLAGS) -c clus2blc.c
50
51 msf2blc.o: msf2blc.c array.h ../gjutil/gjutil.h defaults.h
52         $(CC) $(CFLAGS) -c msf2blc.c
53
54 fast2blc.o: fast2blc.c array.h ../gjutil/gjutil.h defaults.h
55         $(CC) $(CFLAGS) -c fast2blc.c
56
57 ckdd.o: ckdd.c array.h
58         $(CC) $(CFLAGS) -c ckdd.c
59
60 alsnum.o: alsnum.c array.h ../gjutil/gjutil.h defaults.h
61         $(CC) $(CFLAGS) -c alsnum.c