home *** CD-ROM | disk | FTP | other *** search
Makefile | 2014-05-19 | 2.6 KB | 119 lines |
- # Makefile for sgi
- #
- # $Author: espie $
- # $Id: makefile.sgi,v 2.5 1991/12/04 14:04:15 espie Exp espie $
- # $Revision: 2.5 $
- # $Log: makefile.sgi,v $
- # Revision 2.5 1991/12/04 14:04:15 espie
- # Added doc file.
- #
- # Revision 2.4 1991/12/03 17:19:29 espie
- # Added ntracker.
- #
- # Revision 2.3 1991/11/19 16:07:19 espie
- # Added comments, moved minor stuff around.
- #
- # Revision 2.2 1991/11/18 01:10:45 espie
- # Updated, added install entry.
- #
- # Revision 2.1 1991/11/17 23:07:58 espie
- # Added new files.
- #
- # Revision 2.0 1991/11/17 21:42:08 espie
- # Completely corrected buggy tabs.
- #
- # Revision 1.11 1991/11/17 16:30:48 espie
- # Stupid bugs: have to keep the tabs to keep the makefile working.
- #
- # Revision 1.10 1991/11/16 15:50:34 espie
- # Tabs.
- #
- # Revision 1.9 1991/11/16 15:42:43 espie
- # Minor modifications in make clean.
- #
- # Revision 1.8 1991/11/09 17:49:14 espie
- # Added optimization a la sgi.
- #
- # Revision 1.7 1991/11/07 21:40:16 espie
- # Added some macros.
- #
- # Revision 1.5 1991/11/04 13:23:59 espie
- # Added some dependencies.
- # Entry for read.c.
- #
- # Revision 1.4 1991/11/04 08:01:20 espie
- # Added rcp to clipper
- #
- # Revision 1.3 1991/11/03 22:58:41 espie
- # Fixed name mistake.
- #
- # Revision 1.2 1991/11/03 22:55:23 espie
- # Added all, clean and export entries.
- #
- # Revision 1.1 1991/11/03 22:45:39 espie
- # Initial revision
- #
- #
-
- INSTALL_DIR = $(HOME)/bin
- O = .u
- MAIN_OPTS = -O3
- COPTS = $(MAIN_OPTS) -j
- MACHINE = sgi
- OBJECTS = str32$O $(MACHINE)_audio$O read$O commands$O \
- audio$O automaton$O player$O
-
-
- all: tracker otracker ntracker
-
- install: all
- cp tracker $(INSTALL_DIR)
- -rm -f ${INSTALL_DIR}/otracker
- ln ${INSTALL_DIR}/tracker ${INSTALL_DIR}/otracker
- -rm -f ${INSTALL_DIR}/ntracker
- ln ${INSTALL_DIR}/tracker ${INSTALL_DIR}/ntracker
-
- tracker: ${OBJECTS}
- cc -o tracker ${MAIN_OPTS} ${OBJECTS} -laudio -lm
- strip tracker
-
- otracker: tracker
- -rm -f otracker
- ln tracker otracker
-
- ntracker: tracker
- -rm -f ntracker
- ln tracker ntracker
-
- str32$O: str32.c machine.h song.h
- cc ${COPTS} str32.c
-
- $(MACHINE)_audio$O: $(MACHINE)_audio.c machine.h
- cc ${COPTS} $(MACHINE)_audio.c
-
- audio$O: audio.c
- cc ${COPTS} audio.c
-
- automaton$O: automaton.c machine.h song.h channel.h
- cc ${COPTS} automaton.c
-
- player$O: player.c machine.h song.h channel.h
- cc ${COPTS} player.c
-
- read$O: read.c machine.h song.h
- cc ${COPTS} read.c
-
- commands$O: commands.c channel.h machine.h song.h
- cc ${COPTS} commands.c
-
- machine.h: $(MACHINE).h
- cp $(MACHINE).h machine.h
-
- clean:
- -rm *.u *.o machine.h tracker otracker core str.tar str.tar.Z
- export:
- tar cvf str.tar *.c song.h sgi.h sparc.h extern.h channel.h \
- pref.h makefile.* tracker.doc
- compress str.tar
- rcp str.tar.Z clipper:
-