home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
SRC
/
lharc.lzh
/
LHARC
/
makefile
< prev
next >
Wrap
Makefile
|
1991-07-30
|
2KB
|
82 lines
# Makefile for LHArc UNIX
# Copyright(C) MCMLXXXIX Yooichi.Tagawa
# V0.01 Alpha Version 1989.05.28 Y.Tagawa
# V0.02 Alpha Version R2 1989.05.29 Y.Tagawa
# V0.03 Release #3 Beta Version 1989.07.02 Y.Tagawa
#-----------------------------------------------------------------------
# DIRECTORY ACCESS DEPENDENDS...
# The default (no need swtich) is your machine has
# opendir(),readdir(),closedir() library and 'direct' structure used.
# If your machine has no opendir (), readdir (), closedir ()
# -DNONSYSTEM_DIR_LIBRARY
# and add lhdir.r into OBJS macro (see bellow)
# If your machine are 'dirent' (not 'direct') structure used,
# -DSYSV_SYSTEM_DIR
# Otherwise "Give up!"
# -DNODIRECTORY
#
#-----------------------------------------------------------------------
# MEMORY ACCESS STUFF
# Your machine has no BSTRING library (bcmp,bcopy,bzero).
# -DNOBSTRING
#
#-----------------------------------------------------------------------
# TIME STUFF
# Your include file '<sys/time.h>' has no 'struct tm', define this.
# -DSYSTIME_HAS_NO_TM
# If you are running on a BSD system,
# -DBSD
#
# most of 4.[23]BSD
# - vax 4.[23]BSD, SONY NEWS 4.[23]BSD etc.
#SWITCHIES =
#OBJS = lharc.r lzhuf.r lhio.r
# sample of System-V
# - NEC EWS4800
SWITCHIES = -DNOBSTRING -O -T/r0/TMP
#SWITCHIES = -DNOBSTRING -O=2 -gqt=/r0
#lzhuf.c includes remote declaration for OSK-cc
#OBJS = lharc.r lzhufr.r lhio.r # lhdir.r
OBJS = lharc.r lzhuf.r lhio.r # lhdir.r
CC = gcc
#CC = cc
CFLAGS = $(SWITCHIES) -mremote
#LDFLAGS = -l=/dd/lib/os9lib.l -M=20k $(SWITCHIES)
LDFLAGS = -los9lib.l -s 20 -cio
RDIR = rels
#.c.r:
# $(CC) -c -o $(RDIR)/$*.r $*.c $(CFLAGS)
# Xlharc is test binary. Please rename to lharc at install.
# (see install target)
make.date: lharc
@touch make.date
#lharc : $(OBJS)
# chd $(RDIR);$(CC) $(CFLAGS) -fd=../$@ $(OBJS) $(LDFLAGS)
lharc : $(OBJS)
chd $(RDIR);$(CC) -o ../$@ $(OBJS) $(LDFLAGS)
# For Debugging LzHuff module.
lzhuf : lzhuf.c
chd $(RDIR);$(CC) $(CFLAGS) -DSELFMAIN -fd=../$* $*.r
#lzhufr.r : lhio.h
# $(CC) -r=$(RDIR) $(CFLAGS) $*.c
lharc.r : lhio.h
gcc -c -o $(RDIR)/$*.r $(CFLAGS) $*.c
lzhuf.r : lhio.h
gcc -c -o $(RDIR)/$*.r $(CFLAGS) $*.c
lhio.r : lhio.h
gcc -c -o $(RDIR)/$*.r $(CFLAGS) $*.c
clean:
rm -f core lharc.r lzhuf.r lhdir.r lhio.r lharc.tar lharc.tar.Z