      srcdir = @srcdir@

prefix = /usr/local

      bindir = $(prefix)/bin
       VPATH = @srcdir@
       SHELL = /bin/sh
       SLIBS = @LIBS@
     INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
      TOPDIR = ..

ACM_OBJECT_LIBRARY = $(prefix)/games/acm/
       SCENES = default-scene maui-scene kauai-scene oahu-scene
      OBJECTS = inventory f16.obj f18.obj mig23.obj mig25.obj mig29.obj \
		kc135.obj c172.obj aim9.obj tracer.obj tower.obj \
		rwy.obj rwy2.obj mtn.obj lake.obj \
		hangar.obj surface.obj \
		oahu.obj \
		maui_ne.obj maui_nw.obj maui_sw.obj maui_se.obj \
		kauai_ne.obj kauai_nw.obj kauai_sw.obj kauai_se.obj
       SOUNDS = aconnon.au cannon.au crash.au engine.au gear_up.au \
		gear_dn.au imarker.au jet1.au jet2.au missile.au \
       		mmarker.au omarker.au \
		rwr.au screetch.au stall.au

all clean mostlyclean realclean tags info dvi dist check depend:

install: $(SCENES) $(OBJECTS) $(SOUNDS)
	-mkdir -p $(ACM_OBJECT_LIBRARY)
	@for i in $(SCENES) $(OBJECTS) $(SOUNDS) ; do \
		echo Installing $$i ... ; \
		$(INSTALL_DATA) $$i $(ACM_OBJECT_LIBRARY)$$i ; \
	done

uninstall:
	@for i in $(SCENES) $(OBJECTS) $(SOUNDS) ; do \
		echo Uninstalling $$i ... ; \
		rm -f $(ACM_OBJECT_LIBRARY)/$$i ; \
	done

distclean:
	rm -f Makefile

realclean: distclean
