OpenCores
URL https://opencores.org/ocsvn/usb_fpga_1_11/usb_fpga_1_11/trunk

Subversion Repositories usb_fpga_1_11

[/] [usb_fpga_1_11/] [trunk/] [java/] [Makefile] - Rev 3

Go to most recent revision | Compare with Previous | Blame | View Log

#########################
# configuration section #
#########################

ZTEXPREFIX=..

JARTARGET=FWLoader.jar
CLASSTARGETS=FWLoader.class

################################
# DO NOT CHANAGE THE FOLLOWING #
################################

.PHONY: all jar clean distclean

JAVAC=javac
CLASSPATH:=.:$(ZTEXPREFIX)/libusbJava:$(ZTEXPREFIX)/java:$(CLASSPATH)
INCLUDES=-I $(ZTEXPREFIX)/include/
CLASSEXTRADEPS:=$(shell echo $(ZTEXPREFIX)/java/ztex/*.java)

all : jar

all : $(JARTARGET)

%.class: %.java $(CLASSEXTRADEPS)
        $(JAVAC) -cp "$(CLASSPATH)" $< $(CLASSEXTRADEPS)

$(JARTARGET) : $(CLASSTARGETS) $(EXTRAJARFILES)
        jar cf $(JARTARGET) *.class $(EXTRAJARFILES) -C $(ZTEXPREFIX)/libusbJava . $(shell cd $(ZTEXPREFIX)/java; ls ztex/*.class | while read a; do echo "-C $(ZTEXPREFIX)/java $$a"; done)

clean: 
        rm -f *~ *.bak *.old
        rm -f ztex/*~ ztex/*.bak ztex/*.old
        rm -f *.class 
        rm -f *.rel *.rst *.lnk *.lst *.map *.asm *.sym *.mem *.tmp.c 

distclean: clean
        rm -f $(JARTARGET)
        rm -f ztex/*.class
        rm -f *.ihx

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.