# $Id: Makefile 529 2013-08-02 17:15:43Z mueller $
|
# $Id: Makefile 529 2013-08-02 17:15:43Z mueller $
|
#
|
#
|
# Revision History:
|
# Revision History:
|
# Date Rev Version Comment
|
# Date Rev Version Comment
|
# 2013-02-01 479 1.0.1 correct so name (no digits allowed in tcl load...)
|
# 2013-02-01 479 1.0.1 correct so name (no digits allowed in tcl load...)
|
# 2013-01-27 478 1.0 Initial version
|
# 2013-01-27 478 1.0 Initial version
|
#---
|
#---
|
#
|
#
|
# Name of the sharable library
|
# Name of the sharable library
|
#
|
#
|
SONAME = rwxxtpp
|
SONAME = rwxxtpp
|
SOMAJV = 1
|
SOMAJV = 1
|
SOMINV = 0
|
SOMINV = 0
|
#
|
#
|
# Compile and Link search paths
|
# Compile and Link search paths
|
#
|
#
|
include ../checkpath_cpp.mk
|
include ../checkpath_cpp.mk
|
#
|
#
|
INCLFLAGS = -I${RETROBASE}/tools/src -I${TCLINC} -I${BOOSTINC}
|
INCLFLAGS = -I${RETROBASE}/tools/src -I${TCLINC} -I${BOOSTINC}
|
LDLIBS = -L${RETROBASE}/tools/lib -lrtools -lrtcltools
|
LDLIBS = -L${RETROBASE}/tools/lib -lrtools -lrtcltools
|
LDLIBS += -lrlink -lrw11
|
LDLIBS += -lrlink -lrw11
|
LDLIBS += -lrlinktpp
|
LDLIBS += -lrlinktpp
|
#
|
#
|
# Object files to be included
|
# Object files to be included
|
#
|
#
|
OBJ_all = Rwxxtpp_Init.o RtclRw11.o
|
OBJ_all = Rwxxtpp_Init.o RtclRw11.o
|
OBJ_all += RtclRw11Cpu.o RtclRw11CpuW11a.o
|
OBJ_all += RtclRw11Cpu.o RtclRw11CpuW11a.o
|
OBJ_all += RtclRw11Cntl.o RtclRw11CntlFactory.o
|
OBJ_all += RtclRw11Cntl.o RtclRw11CntlFactory.o
|
OBJ_all += RtclRw11Unit.o
|
OBJ_all += RtclRw11Unit.o
|
OBJ_all += RtclRw11UnitTerm.o
|
OBJ_all += RtclRw11UnitTerm.o
|
OBJ_all += RtclRw11UnitDisk.o
|
OBJ_all += RtclRw11UnitDisk.o
|
OBJ_all += RtclRw11UnitStream.o
|
OBJ_all += RtclRw11UnitStream.o
|
OBJ_all += RtclRw11CntlDL11.o RtclRw11UnitDL11.o
|
OBJ_all += RtclRw11CntlDL11.o RtclRw11UnitDL11.o
|
OBJ_all += RtclRw11CntlRK11.o RtclRw11UnitRK11.o
|
OBJ_all += RtclRw11CntlRK11.o RtclRw11UnitRK11.o
|
OBJ_all += RtclRw11CntlLP11.o RtclRw11UnitLP11.o
|
OBJ_all += RtclRw11CntlLP11.o RtclRw11UnitLP11.o
|
OBJ_all += RtclRw11CntlPC11.o RtclRw11UnitPC11.o
|
OBJ_all += RtclRw11CntlPC11.o RtclRw11UnitPC11.o
|
#
|
#
|
DEP_all = $(OBJ_all:.o=.dep)
|
DEP_all = $(OBJ_all:.o=.dep)
|
#
|
#
|
#- generic part ----------------------------------------------------------------
|
#- generic part ----------------------------------------------------------------
|
#
|
#
|
SOFILE = lib$(SONAME).so
|
SOFILE = lib$(SONAME).so
|
SOFILEV = lib$(SONAME).so.$(SOMAJV)
|
SOFILEV = lib$(SONAME).so.$(SOMAJV)
|
SOFILEVV = lib$(SONAME).so.$(SOMAJV).$(SOMINV)
|
SOFILEVV = lib$(SONAME).so.$(SOMAJV).$(SOMINV)
|
#
|
#
|
include $(RETROBASE)/tools/make/generic_cpp.mk
|
include $(RETROBASE)/tools/make/generic_cpp.mk
|
include $(RETROBASE)/tools/make/generic_dep.mk
|
include $(RETROBASE)/tools/make/generic_dep.mk
|
include $(RETROBASE)/tools/make/generic_so.mk
|
include $(RETROBASE)/tools/make/generic_so.mk
|
include $(RETROBASE)/tools/make/dontincdep.mk
|
include $(RETROBASE)/tools/make/dontincdep.mk
|
#
|
#
|
# The magic auto-dependency include
|
# The magic auto-dependency include
|
#
|
#
|
ifndef DONTINCDEP
|
ifndef DONTINCDEP
|
include $(DEP_all)
|
include $(DEP_all)
|
endif
|
endif
|
#
|
#
|
# cleanup phonies:
|
# cleanup phonies:
|
#
|
#
|
.PHONY : clean cleandep distclean
|
.PHONY : clean cleandep distclean
|
clean :
|
clean :
|
@ rm -f $(OBJ_all)
|
@ rm -f $(OBJ_all)
|
@ echo "Object files removed"
|
@ echo "Object files removed"
|
#
|
#
|
cleandep :
|
cleandep :
|
@ rm -f $(DEP_all)
|
@ rm -f $(DEP_all)
|
@ echo "Dependency files removed"
|
@ echo "Dependency files removed"
|
#
|
#
|
distclean : clean cleandep
|
distclean : clean cleandep
|
@ rm -f $(SOPATH)/lib$(SONAME).a $(SOPATH)/lib$(SONAME).so*
|
@ rm -f $(SOPATH)/lib$(SONAME).a $(SOPATH)/lib$(SONAME).so*
|
@ echo "Libraries removed"
|
@ echo "Libraries removed"
|
#
|
#
|
|
|