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

  1. # Makefile for hacked mintlib for Sozobon C (version 2.0 only?)
  2. # This makefile works under GNU make. Any other make I cannot vouch for.
  3.  
  4. # Where to install libraries.
  5. LIBDIR = /usr/sozobon/lib
  6.  
  7. CC = /usr/sozobon/bin/cc
  8. AS = /usr/sozobon/bin/jas
  9. AR = /usr/sozobon/bin/ar
  10. TARGET_ARCH =
  11. # Should have -O, but top is utterly crap.
  12. CFLAGS = 
  13. CPPFLAGS = -D__NO_FLOAT__
  14. LDFLAGS = -s
  15. LDLIBS = 
  16.  
  17. # I use a modified cc; you may want to use the original names for crt0 and
  18. # libc (dstart and dlibs). Should have curses and maybe widget library too.
  19. LIBS = crt0.o libtermcap.a libc.a
  20.  
  21. TESTS = termcap
  22.  
  23. .PHONY : all clean realclean install
  24. all : $(LIBS)
  25.  
  26. # Rule for making objects with optimization
  27. # Need this cos cc is not very clever and gets confused with -o things.
  28. .c.o :
  29.     $(CC) $(TARGET_ARCH) $(CFLAGS) $(CPPFLAGS) -c $<
  30.  
  31. # These are in alphabetical order to make it easy to find one.
  32. OBJECTS = \
  33.     abort.o abs.o access.o alarm.o alloca.o alphasort.o atol.o \
  34.     bcmp.o bcopy.o binmode.o bsearch.o bzero.o \
  35.     chdir.o chmod.o clock.o close.o console.o crtinit.o ctime.o ctype.o \
  36.     difftime.o dirent.o doprnt.o dup.o \
  37.     exec.o \
  38.     fclose.o fcntl.o fdopen.o fflush.o fgetc.o fgets.o filbuf.o \
  39.     findfile.o fopen.o fopenp.o fork.o fprintf.o fputc.o fputs.o \
  40.     fread.o fscanf.o fseek.o fsetpos.o ftw.o fungetc.o fwrite.o \
  41.     getbuf.o getcwd.o getdtable.o getenv.o getgroup.o gethostname.o \
  42.     getlogin.o getopt.o getpass.o getpid.o getpw.o getrusage.o gets.o \
  43.     getuid.o getw.o grp.o \
  44.     ioctl.o isatty.o \
  45.     kill.o \
  46.     linea.o link.o localtime.o lockf.o lseek.o ltoa.o \
  47.     main.o malloc.o memccpy.o memchr.o memcmp.o memcpy.o memset.o \
  48.     mkdir.o mknod.o mktemp.o \
  49.     nice.o \
  50.     open.o osbind.o \
  51.     pause.o perror.o pipe.o popen.o psignal.o \
  52.     qsort.o \
  53.     raise.o rand.o random.o read.o regexp.o regsup.o \
  54.     rename.o rmdir.o \
  55.     sbrk.o scandir.o scanf.o select.o setbuf.o setjmp.o setlocal.o \
  56.     setrlimit.o setvbuf.o sgtty.o sigblock.o siglist.o signal.o sleep.o \
  57.     sozolong.o spawn.o spawnve.o spawnvp.o sprintf.o sscanf.o stat.o \
  58.     stksiz.o strcat.o strchr.o strcmp.o strcpy.o strcspn.o strdup.o \
  59.     strerror.o strftime.o strlen.o strlwr.o strncat.o strncmp.o strncpy.o \
  60.     strpbrk.o strrchr.o strrev.o strspn.o strstr.o strtok.o strtol.o \
  61.     strtoul.o symlink.o sysconf.o system.o sysvar.o \
  62.     textio.o thread.o time.o timeofday.o tmpfile.o tmpnam.o ttyname.o \
  63.     uname.o unlink.o unx2dos.o utime.o utmp.o \
  64.     vfork.o \
  65.     wait.o wait3.o write.o wtmp.o
  66. #    div.o
  67.  
  68. libc.a : $(OBJECTS)
  69.     $(AR) r $@ $?
  70.  
  71. libtermcap.a : termcap.o
  72.     $(AR) r $@ $?
  73.  
  74. # Test version of termcap.
  75. termcap : termcap.c
  76.     $(CC) $(CPPFLAGS) -DTEST $(CFLAGS) -o $@ $< $(LDLIBS)
  77.  
  78. clean :
  79.     rm -f *.o
  80.  
  81. realclean : clean
  82.     rm -f $(LIBS)
  83.  
  84. install :
  85.     cp $(LIBS) $(LIBDIR)
  86.