
PROG		= iso9660.efs
ECHO		= smakyecho

SRCS		= $(wildcard *.cc)
OBJS		= $(subst .cc,.o,$(SRCS))

C++FLAGS	= -DBIGENDIAN -O2 -m68020 -fomit-frame-pointer
C++			= gcc

all: $(OBJS)
	ld -ro -d -o $(PROG) -Lmicrolib microcrt:microcrt.o $(OBJS) -lmu
	smakyshell cp iso9660.efs efs:

#	gcc -o $(PROG) $(OBJS) -lxp -lgxx

deps:
	@$(ECHO) Making dependencies...
	@$(CC) -M $(CPPFLAGS) $(SRCS) > make-c++.deps


#  Include the dependency file if it does exist. If not, the result will
#  be unpredictable. This is just a trick to be able to `make deps'.

ifeq ("$(wildcard make-c++.deps)", "make-c++.deps ")
include make-c++.deps
endif

