Commits

Anonymous committed 9afacbe

GNU Make-specific, but it "just works" under Cygwin.

Comments (0)

Files changed (1)

-# Makefile for worb (yoob version).
+# GNU Makefile for worb (yoob version).
 # $Id$
 
 JAVAC?=javac
 JAVA?=java
 JAR?=jar
-PATHSEP?=:
+ifeq ($(OS),Windows_NT)
+  PATHSEP=;
+else
+  PATHSEP=:
+endif
 
 JFLAGS?=-Xlint:deprecation -Xlint:unchecked
 CDIR=bin/tc/catseye/worb
 CLASSES=$(CDIR)/WorbState.class
 
 YOOBDIR?=../yoob
-CLASSPATH?=bin$(PATHSEP)$(YOOBDIR)/bin
+CP?=bin$(PATHSEP)$(YOOBDIR)/bin
 
 all: $(CLASSES)
 
 $(CDIR)/WorbState.class: src/WorbState.java
-	$(JAVAC) $(JFLAGS) -cp "$(CLASSPATH)" -d bin src/WorbState.java
+	$(JAVAC) $(JFLAGS) -cp "$(CP)" -d bin src/WorbState.java
 
 clean:
 	rm -rf $(CDIR)/*.class
 
 test: $(CLASSES)
-	$(JAVA) -cp "$(CLASSPATH)" tc.catseye.yoob.GUI tc.catseye.worb.WorbState
+	$(JAVA) -cp "$(CP)" tc.catseye.yoob.GUI tc.catseye.worb.WorbState