home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume7 / image / part01 / ascii2var / makefile < prev    next >
Encoding:
Makefile  |  1986-11-30  |  671 b   |  32 lines

  1. # this is the makefile for iff2var
  2.  
  3. .SUFFIXES: .c++ 
  4.  
  5. # This line constructs the program name (equal to the directory name)
  6. # jccpwd^[!!sh^M:s/.*\///g^MIPROGRAM = ^[
  7. PROGRAM = ascii2var
  8.  
  9. CFLAGS = -O -I/usr/grads/include -DVAX -Ddebug 
  10.  
  11.  
  12. C++FLAGS = +i $(CFLAGS)
  13.  
  14. LIBS = -lvartools -lvarc++ -lvar -liff 
  15.  
  16. # This line constructs the list of possible objects
  17. # 2jc}ls *[A-Za-z0-9].c *.c++^[!!sh^M>}>}:g/\.c\+*$/ s//.o \\/^M
  18. OBJS = \
  19.     main.o 
  20.  
  21.  
  22. .c++.o:
  23.     c++ -c  $(C++FLAGS) $*.c++ 
  24.  
  25. # the program is linked by this line
  26. $(PROGRAM) : $(OBJS)
  27.     CC -o $(PROGRAM) $(CFLAGS) $(OBJS) $(LIBS) 
  28.  
  29. # the program is linted by this line
  30. $(PROGRAM).lint : *.c 
  31.     lint -hb *.c -lm > lint.out
  32.