# Makefile for the unsea program # Copyright 1992 David W. Rankin, Jr. # # See unsea.txt for all copyright details # Command line syntax: # make [option] # Options: # # unsea # This option is the one you should pick for actually compiling # unsea. It uses prepare (see below) to compile the code as needed. # # prepare # This option, mainly for the use of the makefile itself, creates # the object code for the unsea options. # # clean # Removes the file "unsea" and all objects from the directory. # Makefile variables: # CC is the variable holding your compiler's name. The values used by a couple # of the systems I know about are here, as well as the default value, GNU's # gcc compiler. If you require a different value here, be sure to include any # flags required to make your compiler ANSI compliant, if necessary. # On NeXTs and AIX, both come with ANSI compatable "cc" compilers standard. # Therefore, they are fine for unsea, although for AIX I still recommend gcc # if you have it. (NeXTs actually use gcc as their standard compiler, so you # don't need to get gcc for them except to upgrade.) #CC=cc # For DYNIX (Sequent), A/UX (Apple UNIX), and SunOS, all the standard "cc" # compilers I've seen are NOT ANSI compliant, so you will have to use gcc or # another ANSI C compiler. I'll default here to "gcc". # I think this is also true for ULTRIX (VAX) and HP-UX, but I wasn't able # to check it out before releasing this version. I have no idea about any # other OSes, so I have to assume they need gcc as well. CC = gcc # CFLAGS specifies whether the compiler should allow for debugging # (-g) or optimization of the code (-O). -O is recommended. # Any other flags your compiler likes or needs should go here. CFLAGS = -O # Some compilers require specific libraries to be added during the program # generation. LIBS should be used for this purpose, as well as any flags # needed during the linking part only. Here are some choices that I know # work on the machines I've seen so far. (Feel free to change this, I can't # know what libraries you actually have.) #For DYNIX (Sequents): #LIBS= -lseq # For everyone else... LIBS= # *STOP* # You should not change anything below here. SOURCES = unsea.c convert.c version.c file.c macbin.c OBJECTS = unsea.o convert.o version.o file.o macbin.o unsea: @make prepare @$(CC) $(CFLAGS) -o unsea $(LIBS) $(OBJECTS) prepare: @$(CC) -c $(CFLAGS) $(SOURCES) clean: rm -fr unsea $(OBJECTS)