浏览代码

Fixed makefile for cygwin

Max Nuding 13 年前
父节点
当前提交
ac9b1100b5
共有 1 个文件被更改,包括 13 次插入13 次删除
  1. 13
    13
      Cube Control/makefile

+ 13
- 13
Cube Control/makefile 查看文件

2
 JAVADOC = javadoc
2
 JAVADOC = javadoc
3
 DOCDIR = doc
3
 DOCDIR = doc
4
 CC = gcc
4
 CC = gcc
5
-TARGET = unix
6
-#TARGET= cygwin
5
+#TARGET = unix
6
+TARGET= cygwin
7
 #TARGET = win
7
 #TARGET = win
8
 
8
 
9
 # Java files to be compiled
9
 # Java files to be compiled
10
 # Needs to be a complete list so they work as target
10
 # Needs to be a complete list so they work as target
11
 JAVAFILES = HelperUtility.java AnimationUtility.java Animation.java AFrame.java cubeWorker.java layerEditFrame.java Led3D.java Frame.java
11
 JAVAFILES = HelperUtility.java AnimationUtility.java Animation.java AFrame.java cubeWorker.java layerEditFrame.java Led3D.java Frame.java
12
 
12
 
13
-ifeq ($(TARGET),win)
14
-INJAR = *.class *.png serialHelper.exe
13
+ifeq ($(TARGET),unix)
14
+INJAR = *.class *.png serialHelper
15
 RM = del
15
 RM = del
16
 else
16
 else
17
-INJAR = *.class *.png serialHelper
17
+INJAR = *.class *.png serialHelper.exe
18
 RM = rm
18
 RM = rm
19
 endif
19
 endif
20
 
20
 
39
 	$(JAVADOC) -d $(DOCDIR) $(JAVAFILES)
39
 	$(JAVADOC) -d $(DOCDIR) $(JAVAFILES)
40
 
40
 
41
 # Compile serial Helper
41
 # Compile serial Helper
42
-ifeq ($(TARGET),win)
43
-serialHelper: serialHelper.c helper/winSerial.c
44
-	$(CC) -o serialHelper.exe -D winHelper serialHelper.c
45
-else
42
+ifeq ($(TARGET),unix)
46
 serialHelper: serialHelper.c helper/unixSerial.c
43
 serialHelper: serialHelper.c helper/unixSerial.c
47
 	$(CC) -o serialHelper serialHelper.c
44
 	$(CC) -o serialHelper serialHelper.c
45
+else
46
+serialHelper: serialHelper.c helper/winSerial.c
47
+	$(CC) -o serialHelper.exe -D winHelper serialHelper.c
48
 endif
48
 endif
49
 
49
 
50
 # Delete intermediate files
50
 # Delete intermediate files
51
 clean:
51
 clean:
52
-ifeq ($(TARGET),win)
53
-	$(RM) *.class
54
-	$(RM) serialHelper.exe
55
-else
52
+ifeq ($(TARGET),unix)
56
 	$(RM) -f *.class
53
 	$(RM) -f *.class
57
 	$(RM) -f serialHelper
54
 	$(RM) -f serialHelper
55
+else
56
+	$(RM) *.class
57
+	$(RM) serialHelper.exe
58
 endif
58
 endif

正在加载...
取消
保存