home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / mint / mntlib24 / makefile < prev    next >
Encoding:
Makefile  |  1993-08-03  |  3.6 KB  |  102 lines

  1. # Makefile for hacked MiNTlib for Heat-n-Serve/Sozobon C, version 1.33i
  2. # and above.  This makefile works with the make provided with 1.40, and
  3. # less well with the make provided with 1.33i
  4.  
  5. # Where to install libraries.
  6. LIBDIR = c:\sozobon\lib
  7.  
  8. # You might want any or all of these; Sozobon's make predefines most of them.
  9. AR = ar
  10. # CP = cp
  11. # RM = rm -f
  12.  
  13. # 1.33i's top apparently takes about 30 minutes on doprnt.c; if you don't
  14. # want to wait that long, use the alternate definition of NOOPT. (1.40's 
  15. # top doesn't seem to have this problem)
  16. CFLAGS = -O -D__NO_FLOAT__ -DNDEBUG
  17. # NOOPT = -D__NO_FLOAT__ -DNDEBUG
  18. NOOPT = $(CFLAGS)
  19.  
  20. # If you prefer more "standard" Unix-like names for your library files, use
  21. # the alternate definitions of CRT0 and LIBC -- assuming, of course, that
  22. # your cc has been modified to recognize those names!
  23. # CRT0 = crt0.o
  24. # LIBC = libc.a
  25. CRT0 = dstart.o
  26. LIBC = dlibs.a
  27. LIBS = $(CRT0) $(LIBC) libtermcap.a
  28.  
  29. .PHONY : all clean realclean install
  30. all : $(LIBS)
  31.  
  32. # These are in alphabetical order to make it easy to find one.
  33. OBJECTS = \
  34.     abort.o abs.o access.o alarm.o alloca.o alphasor.o atexit.o atol.o \
  35.     bcmp.o bcopy.o binmode.o bsearch.o bzero.o \
  36.     calloc.o chdir.o chmod.o clock.o close.o console.o crtinit.o ctime.o \
  37.     ctype.o defmode.o \
  38.     difftime.o dirent.o doprnt.o dup.o \
  39.     eprintf.o exec.o \
  40.     fclose.o fcntl.o fdopen.o fflush.o fgetc.o fgets.o filbuf.o \
  41.     findfile.o fopen.o fopenp.o fork.o fprintf.o fputc.o fputs.o \
  42.     fread.o fscanf.o fseek.o fsetpos.o ftw.o fungetc.o fwrite.o \
  43.     getbuf.o getcwd.o getdtabl.o getenv.o getgroup.o gethostn.o \
  44.     getlogin.o getopt.o getpages.o getpass.o getpid.o getpw.o getrusag.o \
  45.     gets.o getuid.o getw.o grp.o heapbase.o inistack.o \
  46.     ioctl.o initsig.o isatty.o \
  47.     ident.o il.o ic.o iw.o ig.o ip.o \
  48.     kill.o killpg.o \
  49.     linea.o link.o lmalloc.o localtim.o lockf.o lseek.o ltoa.o \
  50.     main.o malloc.o memccpy.o memchr.o memcmp.o memcpy.o memset.o \
  51.     mkdir.o mknod.o mktemp.o \
  52.     nice.o \
  53.     open.o osbind.o \
  54.     pause.o perror.o pipe.o popen.o psignal.o putenv.o \
  55.     qsort.o \
  56.     raise.o rand.o random.o read.o realloc.o regexp.o regsup.o \
  57.     rename.o rmdir.o \
  58.     sbrk.o scandir.o scanf.o select.o setbuf.o setjmp.o setlocal.o \
  59.     setrlimi.o setvbuf.o sgtty.o sigactio.o sigblock.o siglist.o signal.o \
  60.     sleep.o \
  61.     sozolong.o sozulong.o spawn.o spawnve.o spawnvp.o sprintf.o sscanf.o \
  62.     stat.o statfs.o stksiz.o strcat.o strchr.o strcmp.o strcoll.o strcpy.o \
  63.     strcspn.o strdup.o strerror.o strftime.o \
  64.     stricmp.o strlen.o strlwr.o strncat.o strncmp.o strnicmp.o \
  65.     strncpy.o strpbrk.o strrchr.o strrev.o strspn.o strstr.o strtok.o \
  66.     strtol.o strtoul.o symlink.o sysconf.o system.o sysvar.o \
  67.     textio.o thread.o time.o timeoday.o tmpfile.o tmpnam.o ttyname.o \
  68.     uname.o unlink.o unx2dos.o utime.o utmp.o \
  69.     vfork.o \
  70.     wait.o wait3.o waitpid.o write.o wtmp.o
  71. #    div.o
  72.  
  73. # If you're using 1.33i's make, this command will fail spectacularly
  74. # for the first build; you'll have to build it by hand, a few files
  75. # at a time.  After that, if you only change a few files at a time,
  76. # you shouldn't have problems.
  77. $(LIBC) : $(OBJECTS)
  78.     $(AR) rv $@ $?
  79.  
  80. doprnt.o: doprnt.c
  81.     $(CC) $(NOOPT) -c $?
  82.  
  83. libtermcap.a : termcap.o
  84.     $(AR) rv $@ $?
  85.  
  86. # this is ugly, but I can't think of a way around it without risking the TOS
  87. # "copy file to itself" bug.  If you have CRT0 = crt0.o, this rule will
  88. # never be used anyway.
  89. dstart.o : crt0.o
  90.     $(CP) $? $@
  91.  
  92. clean :
  93.     $(RM) *.o
  94.  
  95. realclean : clean
  96.     $(RM) $(LIBS)
  97.  
  98. install : $(LIBS)
  99.     $(CP) $(LIBC) $(LIBDIR)
  100.     $(CP) $(CRT0) $(LIBDIR)
  101.     $(CP) libtermcap.a $(LIBDIR)
  102.