home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / mntlib32.zoo / lattice / mincl.lcc < prev    next >
Text File  |  1993-02-22  |  7KB  |  153 lines

  1. #
  2. # Lattice C model independent makefile
  3. #
  4.  
  5. .PRECIOUS:    $(CLIB)
  6.  
  7. CDEFS=    -D__NO_FLOAT__ -DNDEBUG
  8. CFLAGS=    -Oloop -v -b0 -bn -Iinclude $(CDEFS) $(COPTS)
  9. LIB=    d:\lc\lib\mint
  10. ASM=    lattice
  11. ALL=    $(CRT0) $(CLIB)
  12. OBJ=    abort.o alloca.o abs.o access.o alarm.o alglobal.o alphasor.o atol.o \
  13.     bcmp.o binmode.o bsearch.o bzero.o calloc.o chdir.o chmod.o clock.o close.o \
  14.     console.o crtinit.o ctime.o ctype.o defmode.o difftime.o dirent.o doprnt.o \
  15.     dup.o eprintf.o exec.o execp.o\
  16.     fclose.o fcntl.o fdopen.o fflush.o fgetc.o fgets.o filbuf.o findfile.o \
  17.     fopen.o fopenp.o fork.o fprintf.o fputc.o fputs.o fread.o frwbin.o \
  18.     fscanf.o fseek.o fsetpos.o ftw.o fungetc.o fwrite.o getbuf.o getcwd.o \
  19.     getdtabl.o getenv.o getgroup.o gethostn.o getlogin.o getopt.o getpages.o \
  20.     getpass.o getpid.o getpw.o getrusag.o gets.o getuid.o getw.o grp.o \
  21.     heapbase.o ident.o il.o ic.o iw.o ig.o ip.o inistack.o \
  22.     ioctl.o isatty.o kill.o killpg.o link.o localtim.o lockf.o lseek.o ltoa.o \
  23.     main.o malloc.o memccpy.o memchr.o memcmp.o memcpy.o memset.o mkdir.o \
  24.     mknod.o mktemp.o nice.o open.o pause.o perror.o pipe.o popen.o \
  25.     psignal.o putenv.o qsort.o raise.o rand.o random.o read.o realloc.o \
  26.     regexp.o regsup.o \
  27.     rename.o rmdir.o sbrk.o scandir.o scanf.o select.o setbuf.o setlocal.o \
  28.     setrlimi.o setvbuf.o sgtty.o sigactio.o sigblock.o siglist.o signal.o \
  29.     sleep.o spawn.o spawnve.o spawnvp.o sprintf.o sscanf.o stat.o statfs.o \
  30.     stksiz.o strcat.o strchr.o strcmp.o strcoll.o strcpy.o strcspn.o strdup.o \
  31.     strerror.o strftime.o strlen.o stricmp.o strlwr.o strncat.o strncmp.o \
  32.     strncpy.o strnicmp.o strpbrk.o strrchr.o strrev.o strspn.o strstr.o strtok.o \
  33.     strtol.o strtoul.o strupr.o symlink.o sysconf.o system.o sysvar.o textio.o thread.o \
  34.     time.o timeoday.o times.o tmpfile.o tmpnam.o ttyname.o uname.o \
  35.     unlink.o unx2dos.o utime.o utmp.o wait.o wait3.o waitpid.o write.o wtmp.o \
  36.     _divmods.o _mulsi3.o _udivmod.o _umulsi3.o bcopy.o linea.o osbind.o \
  37.     setjmp.o vfork.o
  38.  
  39. all:    $(ALL)
  40.  
  41. $(CRT0):    $(ASM)\crt0.s
  42.     $(AS) $(ASFLAGS) -o$(CRT0) lattice\crt0.s
  43.  
  44. $(CLIB):    $(CLIB)(abort.o) $(CLIB)(alloca.o) $(CLIB)(abs.o) \
  45.     $(CLIB)(access.o) $(CLIB)(alarm.o) $(CLIB)(alglobal.o) \
  46.     $(CLIB)(alphasor.o) $(CLIB)(atol.o) $(CLIB)(bcmp.o) $(CLIB)(binmode.o) \
  47.     $(CLIB)(bsearch.o) $(CLIB)(bzero.o) $(CLIB)(calloc.o) $(CLIB)(chdir.o) \
  48.     $(CLIB)(chmod.o) $(CLIB)(clock.o) $(CLIB)(close.o) $(CLIB)(console.o) \
  49.     $(CLIB)(crtinit.o) $(CLIB)(ctime.o) $(CLIB)(ctype.o) $(CLIB)(defmode.o) \
  50.     $(CLIB)(difftime.o) $(CLIB)(dirent.o) $(CLIB)(doprnt.o) $(CLIB)(dup.o) \
  51.     $(CLIB)(eprintf.o) $(CLIB)(exec.o) $(CLIB)(execp.o) $(CLIB)(fclose.o) \
  52.     $(CLIB)(fcntl.o) $(CLIB)(fdopen.o) $(CLIB)(fflush.o) $(CLIB)(fgetc.o) \
  53.     $(CLIB)(fgets.o) $(CLIB)(filbuf.o) $(CLIB)(findfile.o) \
  54.     $(CLIB)(fopen.o) $(CLIB)(fopenp.o) $(CLIB)(fork.o) $(CLIB)(fprintf.o) \
  55.     $(CLIB)(fputc.o) $(CLIB)(fputs.o) $(CLIB)(frwbin.o) $(CLIB)(fread.o) \
  56.     $(CLIB)(fscanf.o) $(CLIB)(fseek.o) $(CLIB)(fsetpos.o) $(CLIB)(ftw.o) \
  57.     $(CLIB)(fungetc.o) $(CLIB)(fwrite.o) $(CLIB)(getbuf.o) $(CLIB)(getcwd.o) \
  58.     $(CLIB)(getdtabl.o) $(CLIB)(getenv.o) $(CLIB)(getgroup.o) \
  59.     $(CLIB)(gethostn.o) $(CLIB)(getlogin.o) $(CLIB)(getopt.o) \
  60.     $(CLIB)(getpages.o) $(CLIB)(getpass.o) $(CLIB)(getpid.o) $(CLIB)(getpw.o) \
  61.     $(CLIB)(getrusag.o) $(CLIB)(gets.o) $(CLIB)(getuid.o) $(CLIB)(getw.o) \
  62.     $(CLIB)(grp.o) $(CLIB)(ioctl.o) $(CLIB)(isatty.o) $(CLIB)(kill.o) \
  63.     $(CLIB)(heapbase.o) $(CLIB)(inistack.o) \
  64.     $(CLIB)(ident.o) $(CLIB)(il.o) $(CLIB)(ic.o) $(CLIB)(iw.o) $(CLIB)(ip.o) \
  65.     $(CLIB)(link.o) $(CLIB)(localtim.o) $(CLIB)(lockf.o) $(CLIB)(lseek.o) \
  66.     $(CLIB)(ltoa.o) $(CLIB)(main.o) $(CLIB)(malloc.o) $(CLIB)(memccpy.o) \
  67.     $(CLIB)(memchr.o) $(CLIB)(memcmp.o) $(CLIB)(memcpy.o) \
  68.     $(CLIB)(memset.o) $(CLIB)(mkdir.o) $(CLIB)(mknod.o) $(CLIB)(mktemp.o) \
  69.     $(CLIB)(nice.o) $(CLIB)(open.o) $(CLIB)(pause.o) $(CLIB)(perror.o) \
  70.     $(CLIB)(pipe.o) $(CLIB)(popen.o) $(CLIB)(psignal.o) $(CLIB)(putenv.o) \
  71.     $(CLIB)(qsort.o) $(CLIB)(raise.o) $(CLIB)(rand.o) $(CLIB)(random.o) \
  72.     $(CLIB)(read.o) $(CLIB)(realloc.o) \
  73.     $(CLIB)(regexp.o) $(CLIB)(regsup.o) $(CLIB)(rename.o) $(CLIB)(rmdir.o) \
  74.     $(CLIB)(sbrk.o) $(CLIB)(scandir.o) $(CLIB)(scanf.o) $(CLIB)(select.o) \
  75.     $(CLIB)(setbuf.o) $(CLIB)(setlocal.o) $(CLIB)(setrlimi.o) \
  76.     $(CLIB)(setvbuf.o) $(CLIB)(sgtty.o) $(CLIB)(sigactio.o) \
  77.     $(CLIB)(sigblock.o) \
  78.     $(CLIB)(siglist.o) $(CLIB)(signal.o) $(CLIB)(sleep.o) $(CLIB)(spawn.o) \
  79.     $(CLIB)(spawnve.o) $(CLIB)(spawnvp.o) $(CLIB)(sprintf.o) \
  80.     $(CLIB)(sscanf.o) $(CLIB)(stat.o) $(CLIB)(statfs.o) $(CLIB)(stksiz.o) \
  81.     $(CLIB)(strcat.o) $(CLIB)(strchr.o) $(CLIB)(strcmp.o) $(CLIB)(strcoll.o) \
  82.     $(CLIB)(strcpy.o) $(CLIB)(strcspn.o) $(CLIB)(strdup.o) \
  83.     $(CLIB)(strerror.o) $(CLIB)(strftime.o) $(CLIB)(stricmp.o) $(CLIB)(strlen.o) \
  84.     $(CLIB)(strlwr.o) $(CLIB)(strncat.o) $(CLIB)(strncmp.o) $(CLIB)(strnicmp.o) \
  85.     $(CLIB)(strncpy.o) $(CLIB)(strpbrk.o) $(CLIB)(strrchr.o) \
  86.     $(CLIB)(strrev.o) $(CLIB)(strspn.o) $(CLIB)(strstr.o) \
  87.     $(CLIB)(strtok.o) $(CLIB)(strtol.o) $(CLIB)(strtoul.o) $(CLIB)(strupr.o) \
  88.     $(CLIB)(symlink.o) $(CLIB)(sysconf.o) $(CLIB)(system.o) \
  89.     $(CLIB)(sysvar.o) $(CLIB)(textio.o) $(CLIB)(thread.o) $(CLIB)(time.o) \
  90.     $(CLIB)(timeoday.o) $(CLIB)(times.o) $(CLIB)(tmpfile.o) \
  91.     $(CLIB)(tmpnam.o) $(CLIB)(ttyname.o) $(CLIB)(uname.o) \
  92.     $(CLIB)(unlink.o) $(CLIB)(unx2dos.o) $(CLIB)(utime.o) $(CLIB)(utmp.o) \
  93.     $(CLIB)(wait.o) $(CLIB)(wait3.o) $(CLIB)(waitpid.o) $(CLIB)(write.o) \
  94.     $(CLIB)(wtmp.o) $(CLIB)(_divmods.o) $(CLIB)(_mulsi3.o) $(CLIB)(_udivmod.o) \
  95.     $(CLIB)(_umulsi3.o) $(CLIB)(bcopy.o) $(CLIB)(linea.o) \
  96.     $(CLIB)(osbind.o) $(CLIB)(setjmp.o) $(CLIB)(vfork.o)
  97.  
  98. $(CLIB)(_divmods.o):    $(ASM)\_divmods.s
  99.     $(AS) $(ASFLAGS) -o_divmods.o $(ASM)\_divmods.s
  100.     $(AR) $(ARFLAGS) $(CLIB) r _divmods.o
  101.     $(RM) $(RMFLAGS) _divmods.o
  102.  
  103. $(CLIB)(_mulsi3.o):    $(ASM)\_mulsi3.s
  104.     $(AS) $(ASFLAGS) -o_mulsi3.o $(ASM)\_mulsi3.s
  105.     $(AR) $(ARFLAGS) $(CLIB) r _mulsi3.o
  106.     $(RM) $(RMFLAGS) _mulsi3.o
  107.  
  108. $(CLIB)(_udivmod.o):    $(ASM)\_udivmod.s
  109.     $(AS) $(ASFLAGS) -o_udivmod.o $(ASM)\_udivmod.s
  110.     $(AR) $(ARFLAGS) $(CLIB) r _udivmod.o
  111.     $(RM) $(RMFLAGS) _udivmod.o
  112.  
  113. $(CLIB)(_umulsi3.o):    $(ASM)\_umulsi3.s
  114.     $(AS) $(ASFLAGS) -o_umulsi3.o $(ASM)\_umulsi3.s
  115.     $(AR) $(ARFLAGS) $(CLIB) r _umulsi3.o
  116.     $(RM) $(RMFLAGS) _umulsi3.o
  117.  
  118. $(CLIB)(bcopy.o):    $(ASM)\bcopy.s
  119.     $(AS) $(ASFLAGS) -obcopy.o $(ASM)\bcopy.s
  120.     $(AR) $(ARFLAGS) $(CLIB) r bcopy.o
  121.     $(RM) $(RMFLAGS) bcopy.o
  122.  
  123. $(CLIB)(linea.o):    $(ASM)\linea.s
  124.     $(AS) $(ASFLAGS) -olinea.o $(ASM)\linea.s
  125.     $(AR) $(ARFLAGS) $(CLIB) r linea.o
  126.     $(RM) $(RMFLAGS) linea.o
  127.  
  128. $(CLIB)(osbind.o):    $(ASM)\osbind.s
  129.     $(AS) $(ASFLAGS) -oosbind.o $(ASM)\osbind.s
  130.     $(AR) $(ARFLAGS) $(CLIB) r osbind.o
  131.     $(RM) $(RMFLAGS) osbind.o
  132.  
  133. $(CLIB)(setjmp.o):    $(ASM)\setjmp.s
  134.     $(AS) $(ASFLAGS) -osetjmp.o $(ASM)\setjmp.s
  135.     $(AR) $(ARFLAGS) $(CLIB) r setjmp.o
  136.     $(RM) $(RMFLAGS) setjmp.o
  137.  
  138. $(CLIB)(vfork.o):    $(ASM)\vfork.s
  139.     $(AS) $(ASFLAGS) -ovfork.o $(ASM)\vfork.s
  140.     $(AR) $(ARFLAGS) $(CLIB) r vfork.o
  141.     $(RM) $(RMFLAGS) vfork.o
  142.  
  143. .PHONY:    install clean realclean all
  144.  
  145. install:
  146.     cp $(ALL) $(LIB)
  147.  
  148. clean:
  149.     -rm -f $(OBJ)
  150.  
  151. realclean: clean
  152.     -rm -f $(ALL)
  153.