home *** CD-ROM | disk | FTP | other *** search
Makefile | 1986-11-30 | 671 b | 32 lines |
- # this is the makefile for iff2var
-
- .SUFFIXES: .c++
-
- # This line constructs the program name (equal to the directory name)
- # jccpwd^[!!sh^M:s/.*\///g^MIPROGRAM = ^[
- PROGRAM = ascii2var
-
- CFLAGS = -O -I/usr/grads/include -DVAX -Ddebug
-
-
- C++FLAGS = +i $(CFLAGS)
-
- LIBS = -lvartools -lvarc++ -lvar -liff
-
- # This line constructs the list of possible objects
- # 2jc}ls *[A-Za-z0-9].c *.c++^[!!sh^M>}>}:g/\.c\+*$/ s//.o \\/^M
- OBJS = \
- main.o
-
-
- .c++.o:
- c++ -c $(C++FLAGS) $*.c++
-
- # the program is linked by this line
- $(PROGRAM) : $(OBJS)
- CC -o $(PROGRAM) $(CFLAGS) $(OBJS) $(LIBS)
-
- # the program is linted by this line
- $(PROGRAM).lint : *.c
- lint -hb *.c -lm > lint.out
-