
C++			= gcc
C++FLAGS	= -Wall -m68020
CPPFLAGS	= 
ECHO		= smakyecho

SRC_C++		= $(wildcard *.cc)
OBJ_C++		= $(subst .cc,.o,$(SRC_C++))


all: $(OBJ_C++)
	gcc -o fat.efs $(OBJ_C++) -lxp -lgxx

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

clean:
	@$(ECHO) Cleaning up the object files...
	@-rm -f make-c++.deps $(OBJS_C++) fat.efs


.PHONY : all deps clean lib


#  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


