
PROG		= postman.code

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

ECHO		= smakyecho

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

all: $(C++OBJS)
	gcc -o $(PROG) $(C++OBJS) -lc++ -lgxx

deps:
	@$(ECHO) Making dependencies for the C++ sources
	@$(C++) -M $(CPPFLAGS) $(C++SRCS) > make-c++.deps

clean:
	@$(ECHO) Cleaning up the object files
	@-rm -f make-c++.deps $(C++OBJS) $(wildcard *.a)

.PHONY : all deps clean

#  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


