Line 31... |
Line 31... |
################################################################################
|
################################################################################
|
##
|
##
|
##
|
##
|
.PHONY: all
|
.PHONY: all
|
PROGRAMS := $(OBJDIR) usbtst wbregs netusb wbsettime dumpflash \
|
PROGRAMS := $(OBJDIR) usbtst wbregs netusb wbsettime dumpflash \
|
dumpsdram ziprun ramscope
|
dumpsdram ziprun ramscope zipstate zipdbg
|
all: $(PROGRAMS)
|
all: $(PROGRAMS)
|
CXX := g++
|
CXX := g++
|
LIBUSBINC := -I/usr/include/libusb-1.0/
|
LIBUSBINC := -I/usr/include/libusb-1.0/
|
LIBUSBDIR := -L/usr/lib/x86_64-linux-gnu
|
LIBUSBDIR := -L/usr/lib/x86_64-linux-gnu
|
OBJDIR := obj-pc
|
OBJDIR := obj-pc
|
Line 79... |
Line 79... |
$(CXX) $(CFLAGS) $^ $(LIBS) -o $@
|
$(CXX) $(CFLAGS) $^ $(LIBS) -o $@
|
dumpsdram: $(OBJDIR)/dumpsdram.o $(BUSOBJS)
|
dumpsdram: $(OBJDIR)/dumpsdram.o $(BUSOBJS)
|
$(CXX) $(CFLAGS) $^ $(LIBS) -o $@
|
$(CXX) $(CFLAGS) $^ $(LIBS) -o $@
|
ziprun: $(OBJDIR)/ziprun.o $(BUSOBJS)
|
ziprun: $(OBJDIR)/ziprun.o $(BUSOBJS)
|
$(CXX) $(CFLAGS) $^ $(LIBS) -o $@
|
$(CXX) $(CFLAGS) $^ $(LIBS) -o $@
|
|
zipstate: $(OBJDIR)/zipstate.o $(BUSOBJS)
|
|
$(CXX) $(CFLAGS) $^ $(LIBS) -o $@
|
ZIPOBJS_RAW := twoc.o zparser.o zopcodes.o
|
ZIPOBJS_RAW := twoc.o zparser.o zopcodes.o
|
ZIPOBJS := $(addprefix $(ZIPD)/$(OBJDIR)/,$(ZIPOBJS_RAW))
|
ZIPOBJS := $(addprefix $(ZIPD)/$(OBJDIR)/,$(ZIPOBJS_RAW))
|
zipdbg: $(OBJDIR)/zipdbg.o $(BUSOBJS) $(ZIPOBJS)
|
zipdbg: $(OBJDIR)/zipdbg.o $(BUSOBJS) $(ZIPOBJS)
|
$(CXX) $(CFLAGS) $^ $(LIBS) -lncurses -o $@
|
$(CXX) $(CFLAGS) $^ $(LIBS) -lncurses -o $@
|
cpuscope: $(OBJDIR)/cpuscope.o $(BUSOBJS) $(ZIPOBJS)
|
cpuscope: $(OBJDIR)/cpuscope.o $(BUSOBJS) $(ZIPOBJS)
|