.cd.o:
	CatComp $< OBJFILE $>_strings.o

.cd.h:
	CatComp $< CFILE $>_strings.h

CFLAGS = structureequivalence nostackcheck
LFLAGS = smallcode smalldata nodebug noicons
STARTUP = lib:c.o
LIBS = lib:sc.lib lib:amiga.lib

all: helloworld helloworld.catalog

helloworld: helloworld.o helloworld_strings.o
	slink $(STARTUP) helloworld.o helloworld_strings.o to $@ lib $(LIBS) $(LFLAGS)

helloworld.o: helloworld.c helloworld_strings.h
helloworld_strings.h: helloworld.cd
helloworld_strings.o: helloworld.cd

helloworld.catalog: helloworld.cd helloworld.ct
	CatComp helloworld.cd helloworld.ct CATALOG helloworld.catalog
	-Makedir catalogs
	-Makedir catalogs/fran\ais
	Copy helloworld.catalog catalogs/fran\ais
