home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / biblioteki / c_library / rtlibrary / source / makefile
Makefile  |  1977-12-31  |  1KB  |  72 lines

  1. #
  2. # GNUmakefile
  3. #
  4. # Author: Tomi Ollila <too@cs.hut.fi>
  5. #
  6. #    Copyright (c) 1993 Tomi Ollila
  7. #        All rights reserved
  8. #
  9. # Created: Tue Sep 14 14:11:54 1993 too
  10. # Last modified: Wed Feb  1 00:41:58 1995 too
  11. #
  12. # $Id: Makefile,v 3.4 1994/04/05 16:53:22 too Exp $
  13. #
  14.  
  15. # This is for cross-compiler environment. Set your PATH environment variable
  16. # to have amiga cross compiler bin directory as first entry. in my case:
  17. # bash $ export PATH=/export/too/agcc/bin:$PATH
  18.  
  19. GCCPATH=    /export/too/agcc
  20.  
  21.  
  22. LIB=    ../lib/librt.a
  23.  
  24. TMP=    /tmp
  25. #TMP=    ram:t
  26.  
  27. RM=    rm -f
  28. CP=    cp
  29.  
  30. CC=    gcc
  31. #CFLAGS= -O3 -Wall  -I.
  32. CFLAGS= -O2 -Wall -I$(GCCPATH)/include -I$(GCCPATH)/os-include -I../include -Wno-uninitialized
  33. #CFLAGS=  -O3 -Wall -DDEBUG -I.
  34.  
  35. LFLAGS= -nostdlib -s
  36.  
  37. AR=    ar
  38. AFLAGS= urv
  39.  
  40. RTOBJ=    rt/rt.o rt/rt_remnode.o rt/rt_remdata.o rt/rt_remsome.o
  41.  
  42. RTEXECOBJ=    rt_exec/rt_allocmem.o rt_exec/rt_openlib.o
  43.  
  44. RTDOSOBJ=    rt_dos/rt_open.o
  45.  
  46. OBJ=    $(RTOBJ) $(RTEXECOBJ) $(RTDOSOBJ)
  47.  
  48. SRC=    $(OBJ:.o=.c)
  49.  
  50. all:    $(LIB) $(PRG)
  51.  
  52. .c.o:
  53.     $(CC) $(CFLAGS) -o $@ -c $<
  54. #    $(CC) $(CFLAGS) $<
  55.  
  56. .s.o:
  57.     $(CP) $*.s $(TMP)/x.c
  58.     $(CC) -traditional -E -o $(TMP)/x.s $(TMP)/x.c -I./rtlib
  59.     $(CC) -o $@ -c $(TMP)/x.s
  60.  
  61.  
  62. $(LIB):    $(OBJ)
  63.     $(AR) $(AFLAGS) $@ $(OBJ)
  64.  
  65. clean:
  66.     $(RM) $(OBJ)
  67.  
  68. FRC:
  69.  
  70.  
  71.