Subject:
|
javac Makefile in Cygwin enviorment
|
Newsgroups:
|
lugnet.robotics.rcx.java
|
Date:
|
Tue, 30 Sep 2003 18:19:03 GMT
|
Viewed:
|
5436 times
|
| |
| |
Hi all,
I'm developing some client/server on Lejos/win32(sdk.1.40) -> RCX, and I
wonder if somebody arround have Makefile in Cygwin??? My exemple (bellow) is
not good since I get pcrxcomm.jar problemms ...
---
MAIN_PROGRAM = [xxx]
PACKAGE =
MAKEVERSION = sdk_1_4
RCXTTY = COM1
LEJOSHOME = /lejos
MY_JAVA_HOME = /mnt/xp/j2sdk1.4.0
JAVAC = $(MY_JAVA_HOME)/bin/javac
JAVARUN = $(MY_JAVA_HOME)/bin/java
JAR = $(MY_JAVA_HOME)/bin/jar
CLASSLIB = $(LEJOSHOME)/lib/classes.jar
CLASSPATH =
.;$(LEJOSHOME)/lib/comm.jar;$(LEJOSHOME)/lib/rcx.jar;$(MY_JAVA_HOME)/jre/lib
/ext/rcxport.jar;$(MY_JAVA_HOME)/jre/lib/ext/rcxcomm.jar
SOURCES = $(MAIN_PROGRAM).java
OBJECTS = $(MAIN_PROGRAM).class
PROGRAMS = $(MAIN_PROGRAM)
BINARY = $(PACKAGE)/$(MAIN_PROGRAM)
SIGNATURE = out/$(MAIN_PROGRAM).sig
.EXPORT_ALL_VARIABLES :
.PHONY : run
default : run
run : $(BINARY)
$(JAVARUN) $(BINARY)
$(BINARY) : $(OBJECTS)
$(LEJOS) -verbose $(PROGRAMS) -o $(BINARY)
$(OBJECTS) : $(SOURCES) $(CLASSLIB)
$(JAVAC) -g -verbose -d . $(SOURCES)
pack:
$(JAR) cfm $(MAIN_PROGRAM).jar $(PACKAGE)/*.class
clean :
rm -rf $(BINARY) $(SIGNATURE) *.class *~ core out/*
--
Admir Trakic
Developer, Software Engineering Phone: (045)32 55 45 75
Oestbanegade 147. st. th. Mobile: (045)60 91 79 34
Email: admir ( at ) trakic ( dot ) com
Copenhagen Oe, 2100 Denmark WWW: http://www.trakic.com
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|