home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
MISC
/
file.lzh
/
makefile.unix
< prev
next >
Wrap
Makefile
|
1995-04-27
|
1KB
|
70 lines
# Makefile for myfile
#
# Last Modified: Tue Dec 21 10:32:21 1993
#
# Filename: /tmp_mnt/home/bear/smcgee/c/file/makefile
#
# This makefile creates a Binary named "myfile"
#
.SUFFIXES:
#
# Macros
#
CC = cc
OUTPUT = $(HOME)/usr/bin/$(MACHINE)/myfile
INPUT = file.c readmagic.c strtoul.o istar.c help.c
ICDIR = RELS/$(MACHINE)
RELS = $(ICDIR)/file.o $(ICDIR)/readmagic.o $(ICDIR)/strtoul.o \
$(ICDIR)/istar.o $(ICDIR)/help.o
COPTS = -I. -g
LOPTS = -g
#
# LINK Command
#
$(OUTPUT) : $(RELS)
echo Linking myfile
$(CC) $(LOPTS) $(RELS) -o $(OUTPUT)
#
# Compile Commands
#
# file - file.c
DEPENDS_file = file.h
$(ICDIR)/file.o : file.c $(DEPENDS_file)
echo Compiling file
$(CC) $(COPTS) file.c -c -o $(ICDIR)/file.o
# readmagic - readmagic.c
DEPENDS_readmagic = file.h
$(ICDIR)/readmagic.o : readmagic.c $(DEPENDS_readmagic)
echo Compiling readmagic
$(CC) $(COPTS) readmagic.c -c -o $(ICDIR)/readmagic.o
# strtoul - strtoul.c
$(ICDIR)/strtoul.o : strtoul.c
echo Compiling strtoul
$(CC) $(COPTS) strtoul.c -c -o $(ICDIR)/strtoul.o
$(ICDIR)/istar.o : istar.c file.h
echo Compiling istar
$(CC) $(COPTS) istar.c -c -o $(ICDIR)/istar.o
$(ICDIR)/help.o : help.c file.h
echo Compiling help
$(CC) $(COPTS) help.c -c -o $(ICDIR)/help.o
.SILENT:
clean :
echo rm RELS/$(MACHINE)/*
rm RELS/$(MACHINE)/*
cleanall :
echo rm RELS/*/*
rm RELS/*/*