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] - Blame information for rev 3

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

Line No. Rev Author Line
1 2 ZTEX
#########################
2
# configuration section #
3
#########################
4
 
5
ZTEXPREFIX=..
6
 
7
JARTARGET=FWLoader.jar
8
CLASSTARGETS=FWLoader.class
9
 
10
################################
11
# DO NOT CHANAGE THE FOLLOWING #
12
################################
13
 
14
.PHONY: all jar clean distclean
15
 
16
JAVAC=javac
17
CLASSPATH:=.:$(ZTEXPREFIX)/libusbJava:$(ZTEXPREFIX)/java:$(CLASSPATH)
18
INCLUDES=-I $(ZTEXPREFIX)/include/
19
CLASSEXTRADEPS:=$(shell echo $(ZTEXPREFIX)/java/ztex/*.java)
20
 
21
all : jar
22
 
23
all : $(JARTARGET)
24
 
25
%.class: %.java $(CLASSEXTRADEPS)
26
        $(JAVAC) -cp "$(CLASSPATH)" $< $(CLASSEXTRADEPS)
27
 
28
$(JARTARGET) : $(CLASSTARGETS) $(EXTRAJARFILES)
29
        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)
30
 
31
clean:
32
        rm -f *~ *.bak *.old
33 3 ZTEX
        rm -f ztex/*~ ztex/*.bak ztex/*.old
34 2 ZTEX
        rm -f *.class
35
        rm -f *.rel *.rst *.lnk *.lst *.map *.asm *.sym *.mem *.tmp.c
36
 
37
distclean: clean
38
        rm -f $(JARTARGET)
39
        rm -f ztex/*.class
40
        rm -f *.ihx

powered by: WebSVN 2.1.0

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