home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / SASC6571.LZX / examples / samplelib / smakefile < prev    next >
Encoding:
Makefile  |  1996-12-24  |  1.2 KB  |  51 lines

  1. # This smakefile will build 4 things.
  2. #  1) Small library that shares global data between all 
  3. #     tasks.                                  (test_one.library)
  4. #  2) Test executable to open this library.   (try_one)
  5. #  3) Small library that does not share global data 
  6. #     between tasks.                          (test_multi.library)
  7. #  4) Test executable to open this library.   (try_multi)
  8.  
  9. all: try_one try_multi libs:test_one.library libs:test_multi.library
  10.  
  11.  
  12. try_one: try_one.c
  13.       sc link debug=line try_one.c
  14.  
  15.  
  16.  
  17. libs:test_one.library: test.o 
  18.       slink with <<
  19. LIBPREFIX _LIB 
  20. LIBFD test.fd 
  21. to test_one.library 
  22. FROM lib:libent.o lib:libinit.o test.o 
  23. lib lib:sc.lib 
  24. noicons
  25. SD 
  26. libversion 1 librevision 0
  27. <
  28.       slink from test_one.library to libs:test_one.library ND noicons
  29.  
  30.  
  31. try_multi: try_multi.c
  32.       sc link debug=line try_multi.c
  33.  
  34.  
  35. libs:test_multi.library: test.o 
  36.       slink with <<
  37. LIBPREFIX _LIB 
  38. LIBFD test.fd 
  39. to test_multi.library 
  40. FROM lib:libent.o lib:libinitr.o test.o 
  41. lib lib:sc.lib 
  42. noicons
  43. SD 
  44. libversion 1 librevision 0
  45. <
  46.       slink from test_multi.library to libs:test_multi.library ND noicons
  47.       
  48. test.o: test.c      
  49.       sc libcode nostackcheck debug line test.c
  50.  
  51.