# $Id: Makefile.SH,v 3.0 1992/03/01 02:13:32 davison Trn $

CC = gcc
CFLAGS = -O -DCOMPILING_MTHREADS
LDFLAGS = 

libs = -lm

public = mthreads.exe

h = common.h mthreads.h os2patch.h threads.h

c = mthreads.c mt-read.c mt-process.c mt-write.c mt-misc.c os2patch.c

obj = mthreads.o mt-read.o mt-process.o mt-write.o mt-misc.o os2patch.o parsedate.o

.c.o:
	$(CC) -c $(CFLAGS) $*.c

all: $(public) $(private) $(util)
	touch all

mthreads.exe: $(obj)
	$(CC) $(LDFLAGS) $(obj) $(libs) -o mthreads.exe

# if a .h file depends on another .h file...
$(h):
	-touch $@

clean:
	@ echo 'Use "make realclean" to remove the executables and Configure droppings.'
	@ echo 'Use "make spotless" to also remove config.sh'
	rm -f *.o

realclean: clean
	rm -f core $(addedbymake)

spotless: realclean
	rm -f config.sh

# AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
mt-misc.o: EXTERN.h
mt-misc.o: common.h
mt-misc.o: os2patch.h
mt-misc.o: config.h
mt-misc.o: mt-misc.c
mt-misc.o: mthreads.h
mt-misc.o: thread.h
mt-process.o: EXTERN.h
mt-process.o: common.h
mt-process.o: os2patch.h
mt-process.o: config.h
mt-process.o: mt-process.c
mt-process.o: mthreads.h
mt-process.o: ndir.h
mt-process.o: nntpclient.h
mt-process.o: thread.h
mt-read.o: EXTERN.h
mt-read.o: common.h
mt-read.o: os2patch.h
mt-read.o: config.h
mt-read.o: mt-read.c
mt-read.o: mthreads.h
mt-read.o: thread.h
mt-write.o: EXTERN.h
mt-write.o: common.h
mt-write.o: os2patch.h
mt-write.o: config.h
mt-write.o: mt-write.c
mt-write.o: mthreads.h
mt-write.o: thread.h
mthreads.o: EXTERN.h
mthreads.o: INTERN.h
mthreads.o: common.h
mthreads.o: os2patch.h
mthreads.o: config.h
mthreads.o: mthreads.c
mthreads.o: mthreads.h
mthreads.o: nntpclient.h
mthreads.o: patchlevel.h
mthreads.o: thread.h
ndir.o: EXTERN.h
ndir.o: INTERN.h
ndir.o: common.h
ndir.o: os2patch.h
ndir.o: config.h
ndir.o: ndir.c
ndir.o: ndir.h
nntpclient.o: EXTERN.h
nntpclient.o: common.h
nntpclient.o: os2patch.h
nntpclient.o: config.h
nntpclient.o: nntpclient.c
nntpinit.o: EXTERN.h
nntpinit.o: common.h
nntpinit.o: os2patch.h
nntpinit.o: config.h
nntpinit.o: nntpclient.h
nntpinit.o: nntpinit.c
parsedate.o: config.h
parsedate.o: parsedate.c
# WARNING: Put nothing here or make depend will gobble it up!
