author | jurikm |
Sun, 12 Feb 2012 14:04:10 +0000 | |
changeset 8245 | 383896da4129 |
parent 820 | 6f9715fc880d |
permissions | -rw-r--r-- |
820
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
1 |
diff -urN ../micropolis-activity/src/sim/makefile ./src/sim/makefile |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
2 |
--- ../micropolis-activity/src/sim/makefile 2007-12-01 02:49:55.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
3 |
+++ ./src/sim/makefile 2008-01-22 21:08:46.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
4 |
@@ -7,15 +7,16 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
5 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
6 |
CC = gcc |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
7 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
8 |
-OPTFLAGS = -O3 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
9 |
-#OPTFLAGS = -g |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
10 |
+#OPTFLAGS = -O3 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
11 |
+OPTFLAGS = -g |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
12 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
13 |
#DEFINES = -DIS_LINUX -DIS_INTEL -DCAM -DNET |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
14 |
-DEFINES = -DIS_LINUX -DIS_INTEL |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
15 |
+DEFINES = -DSOLARIS2 -Dsun -DIS_INTEL |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
16 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
17 |
CFLAGS = $(OPTFLAGS) $(DEFINES) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
18 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
19 |
#LDFLAGS = -Bstatic |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
20 |
+LDFLAGS = -lsocket -lnsl |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
21 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
22 |
INSTALL = install -s |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
23 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
24 |
diff -urN ../micropolis-activity/src/sim/w_tk.c ./src/sim/w_tk.c |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
25 |
--- ../micropolis-activity/src/sim/w_tk.c 2007-12-01 02:49:55.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
26 |
+++ ./src/sim/w_tk.c 2008-01-22 22:30:24.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
27 |
@@ -802,7 +802,17 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
28 |
} |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
29 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
30 |
{ char buf[1024]; |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
31 |
- |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
32 |
+ /* I don't know where HostName is supposed to come from, but Solaris |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
33 |
+ sprint doesn't allow sprinting NULL strings. GNU/Linux does |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
34 |
+ */ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
35 |
+ if (HostName == NULL) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
36 |
+ { |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
37 |
+ if (HostName = getenv("HOSTNAME") == NULL) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
38 |
+ { |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
39 |
+ HostName = malloc(_SC_HOST_NAME_MAX); |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
40 |
+ strcpy(HostName,"unknown"); |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
41 |
+ } |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
42 |
+ } |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
43 |
sprintf(buf, "UIStartMicropolis {%s} {%s} {%s}", |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
44 |
HomeDir, ResourceDir, HostName); |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
45 |
filename2UNIX(buf); |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
46 |
diff -urN ../micropolis-activity/src/sim/w_x.c ./src/sim/w_x.c |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
47 |
--- ../micropolis-activity/src/sim/w_x.c 2007-12-01 02:49:55.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
48 |
+++ ./src/sim/w_x.c 2008-01-19 00:45:31.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
49 |
@@ -67,8 +67,12 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
50 |
#ifdef IS_LINUX |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
51 |
int FlushStyle = 3; |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
52 |
#else |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
53 |
+#ifdef SOLARIS2 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
54 |
+int FlushStyle = 3; |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
55 |
+#else |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
56 |
int FlushStyle = 4; |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
57 |
#endif |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
58 |
+#endif |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
59 |
int GotXError; |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
60 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
61 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
62 |
@@ -189,6 +193,7 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
63 |
case 4: |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
64 |
for (xd = XDisplays; xd != NULL; xd = xd->next) { |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
65 |
#ifndef IS_LINUX |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
66 |
+#ifndef SOLARIS2 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
67 |
/* XXX TODO: figure this out for linux and new x libs */ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
68 |
if ((xd->request != xd->dpy->request) || |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
69 |
(xd->last_request_read != xd->dpy->last_request_read)) { |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
70 |
@@ -197,6 +202,7 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
71 |
xd->last_request_read = xd->dpy->last_request_read; |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
72 |
} |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
73 |
#endif |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
74 |
+#endif |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
75 |
} |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
76 |
break; |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
77 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
78 |
@@ -281,6 +287,9 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
79 |
Screen *screen = Tk_Screen(tkwin); |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
80 |
#ifdef IS_LINUX |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
81 |
char *display = ":0"; /* XXX TODO: fix this for new x libs */ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
82 |
+#endif |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
83 |
+#ifdef SOLARIS2 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
84 |
+ char *display = ":17.0"; /* XXX TODO: fix this for new x libs */ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
85 |
#else |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
86 |
char *display = dpy->display_name; |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
87 |
#endif |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
88 |
diff -urN ../micropolis-activity/src/tcl/makefile ./src/tcl/makefile |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
89 |
--- ../micropolis-activity/src/tcl/makefile 2007-12-01 02:49:55.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
90 |
+++ ./src/tcl/makefile 2008-01-22 22:56:34.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
91 |
@@ -26,7 +26,7 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
92 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
93 |
CC = gcc |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
94 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
95 |
-CFLAGS = -O3 -I. -DTCL_LIBRARY=\"${TCL_LIBRARY}\" -DIS_LINUX |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
96 |
+CFLAGS = -O3 -I. -DTCL_LIBRARY=\"${TCL_LIBRARY}\" -DSOLARIS2 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
97 |
#CFLAGS = -g -I. -DTCL_LIBRARY=\"${TCL_LIBRARY}\" -DIS_LINUX |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
98 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
99 |
GENERIC_OBJS = \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
100 |
diff -urN ../micropolis-activity/src/tcl/tclenv.c ./src/tcl/tclenv.c |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
101 |
--- ../micropolis-activity/src/tcl/tclenv.c 2007-12-01 02:49:55.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
102 |
+++ ./src/tcl/tclenv.c 2008-01-22 23:00:01.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
103 |
@@ -57,7 +57,7 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
104 |
int flags)); |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
105 |
static int FindVariable _ANSI_ARGS_((char *name, int *lengthPtr)); |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
106 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
107 |
-#ifdef IS_LINUX |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
108 |
+#if defined(IS_LINUX) || defined(SOLARIS2) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
109 |
int setenv _ANSI_ARGS_((const char *name, const char *value, int replace)); |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
110 |
int unsetenv _ANSI_ARGS_((const char *name)); |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
111 |
#else |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
112 |
@@ -204,7 +204,7 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
113 |
*---------------------------------------------------------------------- |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
114 |
*/ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
115 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
116 |
-#ifdef IS_LINUX |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
117 |
+#if defined(IS_LINUX) || defined(SOLARIS2) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
118 |
int |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
119 |
setenv(name, value, replace) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
120 |
const char *name; /* Name of variable whose value is to be |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
121 |
@@ -273,7 +273,7 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
122 |
(void) Tcl_SetVar2(eiPtr->interp, "env", (char *)name, p+1, TCL_GLOBAL_ONLY); |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
123 |
} |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
124 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
125 |
-#ifdef IS_LINUX |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
126 |
+#if defined(IS_LINUX) || defined(SOLARIS2) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
127 |
return 0; |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
128 |
#endif |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
129 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
130 |
@@ -298,7 +298,7 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
131 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
132 |
int |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
133 |
unsetenv(name) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
134 |
-#ifdef IS_LINUX |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
135 |
+#if defined(IS_LINUX) || defined(SOLARIS2) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
136 |
const char *name; /* Name of variable to remove. */ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
137 |
#else |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
138 |
char *name; /* Name of variable to remove. */ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
139 |
diff -urN ../micropolis-activity/src/tclx/config.mk ./src/tclx/config.mk |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
140 |
--- ../micropolis-activity/src/tclx/config.mk 2007-12-01 02:49:55.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
141 |
+++ ./src/tclx/config.mk 2008-01-22 23:42:16.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
142 |
@@ -25,7 +25,7 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
143 |
# them to us ([email protected]). At the end of this file is a |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
144 |
# description of all the flags that can be set in the config file. |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
145 |
# |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
146 |
-TCL_CONFIG_FILE=linux |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
147 |
+TCL_CONFIG_FILE=solaris2 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
148 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
149 |
#============================================================================== |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
150 |
# |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
151 |
@@ -62,7 +62,7 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
152 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
153 |
CC=gcc |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
154 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
155 |
-OPTIMIZE_FLAG=-O3 -DIS_LINUX |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
156 |
+OPTIMIZE_FLAG=-O3 -DSOLARIS2 -Dsun |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
157 |
#OPTIMIZE_FLAG=-g -DIS_LINUX |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
158 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
159 |
#------------------------------------------------------------------------------ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
160 |
@@ -80,7 +80,7 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
161 |
AR=ar |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
162 |
XCFLAGS= |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
163 |
XLDFLAGS= |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
164 |
-YACC=yacc |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
165 |
+YACC=/usr/bin/yacc |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
166 |
#YACC=bison -b y |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
167 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
168 |
#------------------------------------------------------------------------------ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
169 |
diff -urN ../micropolis-activity/src/tclx/makefile ./src/tclx/makefile |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
170 |
--- ../micropolis-activity/src/tclx/makefile 2007-12-01 02:49:55.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
171 |
+++ ./src/tclx/makefile 2008-01-18 19:35:04.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
172 |
@@ -33,6 +33,8 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
173 |
CFLAGS= $(OPTIMIZE_FLAG) $(XCFLAGS) -I$(TCL_UCB_DIR) $(MEM_DEBUG_FLAGS) \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
174 |
$(SYS_DEP_FLAGS) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
175 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
176 |
+LDFLAGS= -lsocket -lnsl |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
177 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
178 |
#------------------------------------------------------------------------------ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
179 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
180 |
all: tcl tcldef runtcl $(TCL_TK_SHELL) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
181 |
diff -urN ../micropolis-activity/src/tclx/src/makefile ./src/tclx/src/makefile |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
182 |
--- ../micropolis-activity/src/tclx/src/makefile 2007-12-01 02:49:55.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
183 |
+++ ./src/tclx/src/makefile 2008-01-22 23:27:12.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
184 |
@@ -26,8 +26,9 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
185 |
#------------------------------------------------------------------------------ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
186 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
187 |
CFLAGS= $(OPTIMIZE_FLAG) $(XCFLAGS) -I../$(TCL_UCB_DIR) $(MEM_DEBUG_FLAGS) \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
188 |
- $(SYS_DEP_FLAGS) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
189 |
+ $(SYS_DEP_FLAGS) -DSOLARIS2 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
190 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
191 |
+LDFLAGS= -lsocket -lnsl |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
192 |
#------------------------------------------------------------------------------ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
193 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
194 |
OBJS= main.o tclxbsrc.o tclxcclk.o tclxchmd.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
195 |
@@ -48,10 +49,10 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
196 |
touch made.tmp |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
197 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
198 |
tclxstup.o: patchlvl.h tclxstup.c |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
199 |
- $(CC) -c $(CFLAGS) -DTCL_DEFAULT=\"$(TCL_DEFAULT)\" tclxstup.c |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
200 |
+ $(CC) -c $(CFLAGS) $(LDFLAGS) -DTCL_DEFAULT=\"$(TCL_DEFAULT)\" tclxstup.c |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
201 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
202 |
main.o: patchlvl.h main.c |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
203 |
- $(CC) -c $(CFLAGS) $(HISTORY_FLAG) main.c |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
204 |
+ $(CC) -c $(CFLAGS) $(LDFLAGS) $(HISTORY_FLAG) main.c |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
205 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
206 |
tclxgdat.c: tclxgdat.y |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
207 |
$(YACC) tclxgdat.y |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
208 |
@@ -59,7 +60,7 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
209 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
210 |
../tcl: ../libtcl.a made.tmp |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
211 |
$(RANLIB_CMD) ../libtcl.a |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
212 |
- $(CC) $(CFLAGS) main.o ../libtcl.a $(LIBS) $(XLDFLAGS) -o ../tcl |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
213 |
+ $(CC) $(CFLAGS) $(LDFLAGS) main.o ../libtcl.a $(LIBS) $(XLDFLAGS) -o ../tcl |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
214 |
if $(DO_STRIPPING) ; then \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
215 |
strip ../tcl; \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
216 |
$(MCS_CMD) ../tcl; fi |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
217 |
@@ -71,7 +72,7 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
218 |
# C++ directories first. |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
219 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
220 |
tclplus.o: tclplus.c tclplus.h |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
221 |
- $(CCPLUS) -c -I $(CCPLUSINCL) $(CFLAGS) $(HISTORY_FLAG) tclplus.cc |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
222 |
+ $(CCPLUS) -c -I $(CCPLUSINCL) $(CFLAGS) $(LDFLAGS) $(HISTORY_FLAG) tclplus.cc |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
223 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
224 |
#------------------------------------------------------------------------------ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
225 |
# This is just to test if it compiles. |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
226 |
@@ -79,7 +80,7 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
227 |
tclplus: ../tclplus |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
228 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
229 |
../tclplus: mainplus.o |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
230 |
- $(CCPLUS) $(CFLAGS) main++.o ../libtcl.a $(LIBS) $(XLDFLAGS) \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
231 |
+ $(CCPLUS) $(CFLAGS) $(LDFLAGS) main++.o ../libtcl.a $(LIBS) $(XLDFLAGS) \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
232 |
-o ../tcl++ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
233 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
234 |
mainplus.o: tclplus.h mainplus.c |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
235 |
diff -urN ../micropolis-activity/src/tk/makefile ./src/tk/makefile |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
236 |
--- ../micropolis-activity/src/tk/makefile 2007-12-01 02:49:55.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
237 |
+++ ./src/tk/makefile 2008-01-22 23:22:57.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
238 |
@@ -29,9 +29,11 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
239 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
240 |
CC = gcc |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
241 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
242 |
-CFLAGS = -I. -I$(XINCLUDE) -I$(TCL_DIR) -O3 -DTK_VERSION=\"2.3\" -DUSE_XPM3 -DIS_LINUX |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
243 |
+CFLAGS = -I. -I$(XINCLUDE) -I$(TCL_DIR) -O3 -DTK_VERSION=\"2.3\" -DUSE_XPM3 -DSOLARIS2 -Dsun |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
244 |
#CFLAGS = -I. -I$(XINCLUDE) -I$(TCL_DIR) -g -DTK_VERSION=\"2.3\" -DUSE_XPM3 -DIS_LINUX |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
245 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
246 |
+LDFLAGS = -lsocket -lnsl |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
247 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
248 |
TCL_DIR = ../tcl |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
249 |
XINCLUDE = /usr/include/X11 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
250 |
XLIB = -L/usr/X11R6/lib -lX11 -lXpm |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
251 |
@@ -167,7 +169,7 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
252 |
all: wish |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
253 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
254 |
wish: main.o $(LIBS) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
255 |
- $(CC) $(CFLAGS) main.o $(LINKS) $(XLIB) -lm -o wish |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
256 |
+ $(CC) $(CFLAGS) $(LDFLAGS) main.o $(LINKS) $(XLIB) -lm -o wish |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
257 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
258 |
libtk.a: $(OBJS) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
259 |
rm -f libtk.a |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
260 |
diff -urN ../micropolis-activity/src/tk/makefile.bak ./src/tk/makefile.bak |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
261 |
--- ../micropolis-activity/src/tk/makefile.bak 1970-01-01 01:00:00.000000000 +0100 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
262 |
+++ ./src/tk/makefile.bak 2008-01-22 23:12:29.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
263 |
@@ -0,0 +1,189 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
264 |
+# |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
265 |
+# This is a simplified Makefile for use in Tk distributions. Before using |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
266 |
+# it to compile Tk, you may wish to reset some of the following variables: |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
267 |
+# |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
268 |
+# TCL_DIR - Name of directory holding tcl.h and tcl.a. |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
269 |
+# XLIB - Name of archive containing Xlib binaries. |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
270 |
+# |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
271 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
272 |
+# You may also wish to add some of the following switches to the CFLAGS |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
273 |
+# variable: |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
274 |
+# |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
275 |
+# -DX11R3 Causes code that depends on R4 facilities not to |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
276 |
+# be compiled. I haven't tested Tk with R3 in quite |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
277 |
+# a while, so this switch may not be enough to |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
278 |
+# generate a working R3 version of Tk. Furthermore, |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
279 |
+# use of this switch will disable some of the facilities |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
280 |
+# of Tk related to window managers. |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
281 |
+# -DNO_PROTOTYPE Turns off ANSI-style procedure prototypes and the |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
282 |
+# corresponding compile-time checks. Without this |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
283 |
+# defininition, prototypes will be turned on if the |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
284 |
+# compiler supports ANSI C by defining __STDC__. |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
285 |
+# -DTK_LIBRARY=\"dir\" Arranges for dir, which must be the name of a |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
286 |
+# directory, to be the library directory for Tk scripts. |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
287 |
+# This value gets put into the variable $tk_library |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
288 |
+# when a new application is created. The library |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
289 |
+# defaults to /usr/local/lib/tk, so you don't need the |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
290 |
+# switch unless your library is in a non-standard place. |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
291 |
+# |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
292 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
293 |
+CC = gcc |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
294 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
295 |
+CFLAGS = -I. -I$(XINCLUDE) -I$(TCL_DIR) -O3 -DTK_VERSION=\"2.3\" -DUSE_XPM3 -DSOLARIS2 -Dsun |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
296 |
+#CFLAGS = -I. -I$(XINCLUDE) -I$(TCL_DIR) -g -DTK_VERSION=\"2.3\" -DUSE_XPM3 -DIS_LINUX |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
297 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
298 |
+LDFLAGS = -lsocket -lnsl |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
299 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
300 |
+TCL_DIR = ../tcl |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
301 |
+XINCLUDE = /usr/include/X11 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
302 |
+XLIB = -L/usr/X11R6/lib -lX11 -lXpm |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
303 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
304 |
+LIBS = libtk.a $(TCL_DIR)/libtcl.a |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
305 |
+LINKS = $(LIBS) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
306 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
307 |
+WIDGOBJS = \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
308 |
+ tkbutton.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
309 |
+ tkentry.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
310 |
+ tkframe.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
311 |
+ tklist.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
312 |
+ tkmenu.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
313 |
+ tkmnbut.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
314 |
+ tkmsg.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
315 |
+ tkscale.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
316 |
+ tkscrbar.o |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
317 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
318 |
+CANVOBJS = \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
319 |
+ tkcanvas.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
320 |
+ tkcvarc.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
321 |
+ tkcvbmap.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
322 |
+ tkcvline.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
323 |
+ tkcvpoly.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
324 |
+ tkcvtext.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
325 |
+ tkcvwind.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
326 |
+ tkrectov.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
327 |
+ tktrig.o |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
328 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
329 |
+TEXTOBJS = \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
330 |
+ tktext.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
331 |
+ tktxbtre.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
332 |
+ tktxdisp.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
333 |
+ tktxidx.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
334 |
+ tktxtag.o |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
335 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
336 |
+OBJS = \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
337 |
+ tk3d.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
338 |
+ tkargv.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
339 |
+ tkatom.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
340 |
+ tkbind.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
341 |
+ tkbitmap.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
342 |
+ tkcmds.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
343 |
+ tkcolor.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
344 |
+ tkconfig.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
345 |
+ tkcursor.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
346 |
+ tkerror.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
347 |
+ tkevent.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
348 |
+ tkfont.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
349 |
+ tkget.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
350 |
+ tkgc.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
351 |
+ tkgeo.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
352 |
+ tkgrab.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
353 |
+ tkoption.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
354 |
+ tkpack.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
355 |
+ tkpixmap.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
356 |
+ tkplace.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
357 |
+ tkpresrv.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
358 |
+ tkselect.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
359 |
+ tksend.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
360 |
+ tkshare.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
361 |
+ tkwindow.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
362 |
+ tkwm.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
363 |
+ tkrawtcp.o \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
364 |
+ $(WIDGOBJS) \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
365 |
+ $(CANVOBJS) \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
366 |
+ $(TEXTOBJS) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
367 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
368 |
+WIDGSRCS = \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
369 |
+ tkbutton.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
370 |
+ tkentry.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
371 |
+ tkframe.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
372 |
+ tklist.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
373 |
+ tkmenu.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
374 |
+ tkmnbut.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
375 |
+ tkmessage.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
376 |
+ tkscale.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
377 |
+ tkscrbar.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
378 |
+ tktext.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
379 |
+ tktxbtre.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
380 |
+ tktxdisp.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
381 |
+ tktextindex.c |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
382 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
383 |
+CANVSRCS = \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
384 |
+ tkcanvas.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
385 |
+ tkcvarc.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
386 |
+ tkcvbmap.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
387 |
+ tkcvline.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
388 |
+ tkcvpoly.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
389 |
+ tkcvtext.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
390 |
+ tkcvwind.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
391 |
+ tkrectov.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
392 |
+ tktrig.c |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
393 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
394 |
+TEXTSRCS = \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
395 |
+ tktext.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
396 |
+ tktxbtre.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
397 |
+ tktxdisp.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
398 |
+ tktxidx.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
399 |
+ tktxtag.c |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
400 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
401 |
+SRCS = \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
402 |
+ tk3d.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
403 |
+ tkargv.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
404 |
+ tkatom.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
405 |
+ tkbind.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
406 |
+ tkbitmap.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
407 |
+ tkcmds.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
408 |
+ tkcolor.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
409 |
+ tkconfig.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
410 |
+ tkcursor.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
411 |
+ tkerror.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
412 |
+ tkevent.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
413 |
+ tkfont.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
414 |
+ tkget.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
415 |
+ tkgc.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
416 |
+ tkgeo.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
417 |
+ tkgrab.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
418 |
+ tkoption.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
419 |
+ tkpack.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
420 |
+ tkplace.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
421 |
+ tkpresrv.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
422 |
+ tkselect.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
423 |
+ tksend.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
424 |
+ tkshare.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
425 |
+ tkwindow.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
426 |
+ tkwm.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
427 |
+ tkrawtcp.c \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
428 |
+ $(widgsrcs) \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
429 |
+ $(CANVSRCS) \ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
430 |
+ $(TEXTSRCS) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
431 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
432 |
+all: wish |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
433 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
434 |
+wish: main.o $(LIBS) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
435 |
+ $(CC) $(CFLAGS) $(LDFLAGS) main.o $(LINKS) $(XLIB) -lm -o wish |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
436 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
437 |
+libtk.a: $(OBJS) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
438 |
+ rm -f libtk.a |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
439 |
+ ar cr libtk.a $(OBJS) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
440 |
+ ranlib libtk.a |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
441 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
442 |
+$(TCL_DIR)/libtcl.a: |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
443 |
+ cd $(TCL_DIR); make libtcl.a |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
444 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
445 |
+clean: |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
446 |
+ touch junk~ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
447 |
+ rm -f $(OBJS) main.o libtk.a wish *~ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
448 |
+ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
449 |
+$(OBJS): tk.h tkint.h tkconfig.h |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
450 |
+$(WIDGOBJS): default.h |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
451 |
+$(CANVOBJS): default.h tkcanvas.h |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
452 |
+main.o: tk.h tkint.h |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
453 |
diff -urN ../micropolis-activity/src/tk/tkbind.c ./src/tk/tkbind.c |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
454 |
--- ../micropolis-activity/src/tk/tkbind.c 2007-12-01 02:49:55.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
455 |
+++ ./src/tk/tkbind.c 2008-01-22 23:17:01.000000000 +0000 |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
456 |
@@ -1490,7 +1490,7 @@ |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
457 |
if (dispPtr->symsPerCode == 0) { |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
458 |
Display *dpy = dispPtr->display; |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
459 |
|
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
460 |
-#ifdef IS_LINUX |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
461 |
+#if defined(IS_LINUX) || defined(SOLARIS2) |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
462 |
XDisplayKeycodes(dpy, &dispPtr->firstKeycode, &dispPtr->lastKeycode); |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
463 |
#else |
6f9715fc880d
First build of micropolis-actvity (opensourced parts of SimCity for OLPC)
bnitz
parents:
diff
changeset
|
464 |
dispPtr->firstKeycode = |