home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / awe2-0_1.lha / awe2-0.1 / Src / GNUmakefile.compilers < prev    next >
Encoding:
Text File  |  1990-06-24  |  859 b   |  47 lines

  1.  
  2. #
  3. #    Configurations for different compilers
  4. #
  5.  
  6.  
  7. ifeq ($(C++),CC)
  8.   ASCPP    = -DPCC
  9.   I    =-I/usr/include/CC -I/usr/local/include/CC
  10.   INCL    = -I. -I$(COMPILE-DIRECTORY) -I../Src $(I)
  11.   C++FLAGS := ${C++FLAGS} ${INCL}
  12.   LFLAGS := ${LFLAGS} ${C++FLAGS} 
  13. endif
  14.  
  15. ifeq ($(C++),GCC)
  16.   ASCPP    = -D__Cplusplus__
  17. .cc.c:;
  18.     $(C++) $(INCL) $(C++FLAGS) -Fc $^ > $*.c
  19. endif
  20.  
  21. ifeq ($(C++),g++)
  22.   CC=gcc
  23.   ASCPP    =-D__GNUG__
  24. .cc.s:; $(C++) $(C++FLAGS) -S $^
  25. endif
  26.  
  27. ifeq ($(HOSTTYPE),sun3)
  28. %.o: %.s
  29.     /lib/cpp $(ASCPP)  < $< > tmp$$$$.s ;\
  30.     $(AS) $(ASFLAGS) -o $*.o tmp$$$$.s ;\
  31.     rm -f tmp$$$$.s
  32. endif
  33.  
  34. ifeq ($(HOSTTYPE),umax)
  35. %.o: %.s
  36.     /lib/cpp $(ASCPP)  < $< | m4 >tmp$$$$.s ;\
  37.     $(AS) $(ASFLAGS) -o $*.o tmp$$$$.s ;\
  38.     rm -f tmp$$$$.s
  39. endif
  40.  
  41. ifeq ($(HOSTTYPE),onemax)
  42. %.o: %.s
  43.     /lib/cpp $(ASCPP)  < $< | m4 >tmp$$$$.s ;\
  44.     $(AS) $(ASFLAGS) -o $*.o tmp$$$$.s ;\
  45.     rm -f tmp$$$$.s
  46. endif
  47.