### 	Makefile
COPTS	=       -v -O
CMODEL	=	-w -b0 -r0
CREFS	=	
DEFINES =	
LMODEL	=	snb
LDOPTS	=	-N -td -Lnbg+$(ALTLIB)
ALTLIB	=	aesa$(LMODEL).lib
#
CFLAGS	=	$(COPTS) $(CMODEL) $(CREFS) $(DEFINES)
ASFLAGS =
LDFLAGS =	$(COPTS) $(CMODEL) $(LDOPTS)
MAPOPTS =	#MAP $*.map

SETUP  =	gemskel.o handlers.o intro.o\
		mainstuf.o dpath.o file.o xform_do.o\
		tables.o\
		mn_aes.o mn_index.o mn_menu.o mn_submn.o\
		mn_event.o mn_mbar.o mn_popup.o mn_tools.o\
		text.o

.c.o:
	lc -c $(CFLAGS) -o$@ $<

.s.o:
	mac $*.s
	dr2lc $@

install.prg:	$(SETUP)
			lc $(LDFLAGS)=$@ $(SETUP)
			@gstfix $@

#-	lc $(LDFLAGS)= -o$@ $(SETUP)

gemskel.o:	country.h text.h handlers.h mainstuf.h

handlers.o:	country.h setup.h text.h gemskel.h intro.h \
		file.h menubind.h dpath.h driver.h\
		assign.h extend.h epath.h

intro.o:	country.h setup.h text.h gemskel.h handlers.h\
		dpath.h

dpath.o:	country.h text.h setup.h gemskel.h handlers.h assign.h\
		file.h

epath.o:	country.h text.h setup.h gemskel.h handlers.h assign.h\
		file.h

drivers.o:	country.h text.h setup.h gemskel.h handlers.h menubind.h

fonts.o:	country.h text.h setup.h gemskel.h handlers.h

apps.o:		country.h text.h setup.h gemskel.h handlers.h

mainstuf.o:	country.h text.h handlers.h gemskel.h menubind.h file.h\
		setup.h tables.h

xform_do.o:	country.h setup.h gemskel.h handlers.h

file.o:		country.h text.h gemskel.h handlers.h drivers.h mainstuf.h\
		setup.h tables.h

tables.o:	country.h setup.h text.h gemskel.h handlers.h file.h

assign.o:	country.h text.h setup.h gemskel.h handlers.h file.h

extend.o:	country.h text.h setup.h gemskel.h handlers.h file.h

text.o:		country.h

france:	
	@cp resource\france\france.rsc install.rsc
	@touch *.c
	@echo FRANCE resource moved and C file touched.
usa:
	@cp resource\usa\usa.rsc install.rsc
	@touch *.c
	@echo USA resource moved and C files touched.

german:
	@cp resource\german\german.rsc install.rsc
	@touch *.c
	@echo GERMAN resource moved and C files touched.

