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/] [ztex/] [Makefile] - Blame information for rev 8

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 8 ZTEX
#########################
2
# configuration section #
3
#########################
4
 
5
ZTEXPREFIX=../..
6
 
7
#PREFIX  base directory for installing
8
#default: /usr/local for OS=UNIX and c:\usr else
9
#e.g. PREFIX=/usr
10
 
11
#JAVADIR  where to install jar's
12
#default: $(PREFIX)/share/java
13
 
14
#BINDIR  where to install bin's
15
#default: $(PREFIX)/bin
16
 
17
#MANDIR  where to install mans's
18
#default: $(PREFIX)/share/man/man1
19
 
20
################################
21
# DO NOT CHANAGE THE FOLLOWING #
22
################################
23
 
24
.PHONY: all clean distclean install
25
 
26
 
27
JAVAC=javac
28
INSTALL=install
29
INSTALLDIR=$(INSTALL) -d
30
INSTALLEXE=$(INSTALL) -m 0755
31
INSTALLFILE=$(INSTALL) -m 0644
32
 
33
CLASSPATH:=.:$(ZTEXPREFIX)/libusbJava:$(ZTEXPREFIX)/java:/usr/local/share/java:/usr/share/java:$(CLASSPATH)
34
JAVAFILES:=$(wildcard *.java)
35
 
36
ifndef PREFIX
37
  PREFIX=/usr/local
38
endif
39
 
40
ifndef JAVADIR
41
  JAVADIR=$(PREFIX)/share/java
42
endif
43
 
44
ifndef BINDIR
45
  BINDIR=$(DESTDIR)$(PREFIX)/bin
46
endif
47
 
48
all : $(JAVAFILES)
49
        $(JAVAC) -cp "$(CLASSPATH)" $(JAVAFILES)
50
 
51
install: $(CLASSTARGETS)
52
        $(INSTALLDIR) $(JAVADIR)/ztex
53
        $(INSTALLFILE) *.class $(JAVADIR)/ztex
54
 
55
clean:
56
        rm -f *~ *.bak *.old
57
 
58
distclean: clean
59
        rm -f $(JARTARGET)
60
        rm -f *.class

powered by: WebSVN 2.1.0

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