#Depending on your system, you will need to modify this makefile.

#If you do not have gcc, change the setting for CC, but you must
#use an ANSI standard C compiler (NOT the old SunOS 4.1.3 cc
#compiler; get gcc if you are still using it). 

#If the ar command fails on your system, consult the ar manpage
#for your system. 

CC = sc
SCOPTIONS = OPTSCHED OPTINL OPTALIAS OPTTIME OPTINLOCAL STRMERGE \
            NOICON NOSTACKCHECK UTILLIB NOVERSION

CFLAGS = OPT DATA=far
AR = oml
LIBS = LIB gd.lib

all: SCOPTIONS gd.lib gddemo giftogd webgif

gddemo: gddemo.o gd.lib gd.h gdfonts.h gdfontl.h
	$(CC) $(CFLAGS) LINK TO gddemo gddemo.o $(LIBS)

giftogd: giftogd.o gd.lib gd.h
	$(CC) $(CFLAGS) LINK TO giftogd giftogd.o $(LIBS) 

gd.lib: gd.o gdfontt.o gdfonts.o gdfontmb.o gdfontl.o gdfontg.o \
	gd.h gdfontt.h gdfonts.h gdfontmb.h gdfontl.h gdfontg.h
	@-delete force quiet gd.lib
	$(AR) gd.lib r gd.o gdfontt.o gdfonts.o gdfontmb.o \
		gdfontl.o gdfontg.o

webgif: webgif.o gd.lib gd.h
	$(CC) $(CFLAGS) LINK TO webgif webgif.o $(LIBS)

clean:
	@-delete force quiet *.o *.lib gddemo giftogd *.lnk SCOPTIONS

SCOPTIONS: smakefile
	copy to $@ <from <
$(SCOPTIONS)
<

