oga's tools
Revision | 6009d01a66f1f35d561593fcec616334cbfc5351 (tree) |
---|---|
Zeit | 2014-02-22 01:47:48 |
Autor | oga <hyperoga@gmai...> |
Commiter | oga |
add commands, use winlib
@@ -28,7 +28,7 @@ SJISOPT=-finput-charset=CP932 -fexec-charset=CP932 | ||
28 | 28 | |
29 | 29 | #---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8 |
30 | 30 | TARGETS = $(VP)/age.exe $(VP)/cal.exe $(VP)/cgrep.exe $(VP)/csv2nocr.exe \ |
31 | - $(VP)/dp64.exe $(VP)/dp.exe $(VP)/dsync.exe $(VP)/enews.exe \ | |
31 | + $(VP)/df.exe $(VP)/dp64.exe $(VP)/dp.exe $(VP)/dsync.exe $(VP)/enews.exe \ | |
32 | 32 | $(VP)/find2.exe $(VP)/getword.exe $(VP)/hddinit.exe $(VP)/hdinfo.exe \ |
33 | 33 | $(VP)/headtail.exe $(VP)/hexdec.exe $(VP)/id3.exe $(VP)/ifchk2.exe \ |
34 | 34 | $(VP)/ifchk.exe $(VP)/kanji2.exe $(VP)/kita.exe $(VP)/loto6.exe \ |
@@ -41,15 +41,19 @@ TARGETS = $(VP)/age.exe $(VP)/cal.exe $(VP)/cgrep.exe $(VP)/csv2nocr.exe \ | ||
41 | 41 | $(VP)/getmypath.exe $(VP)/id.exe $(VP)/load.exe $(VP)/malloc.exe \ |
42 | 42 | $(VP)/pwd.exe $(VP)/rand2.exe $(VP)/raw.exe $(VP)/readls.exe \ |
43 | 43 | $(VP)/rndplay.exe $(VP)/timex.exe $(VP)/uname.exe $(VP)/tee.exe \ |
44 | - $(VP)/test64_win.exe \ | |
44 | + $(VP)/test64_win.exe $(VP)/getip.exe \ | |
45 | 45 | $(VP)/class.exe $(VP)/cp2.exe $(VP)/deltag.exe $(VP)/hex2bin.exe \ |
46 | 46 | $(VP)/hexbin.exe $(VP)/hscp.exe $(VP)/htlink.exe $(VP)/iso2022.exe \ |
47 | 47 | $(VP)/kita2.exe $(VP)/othello2.exe $(VP)/peke2.exe $(VP)/peke.exe \ |
48 | 48 | $(VP)/perfan.exe $(VP)/strings2.exe $(VP)/t64an.exe $(VP)/tolower.exe \ |
49 | 49 | $(VP)/txt2vnt.exe $(VP)/upload.exe $(VP)/wavana.exe $(VP)/wavcut2.exe \ |
50 | - $(VP)/wavcut.exe $(VP)/which.exe $(VP)/xalloc.exe $(VP)/zusa.exe | |
50 | + $(VP)/wavcut.exe $(VP)/which.exe $(VP)/xalloc.exe $(VP)/zusa.exe \ | |
51 | + $(VP)/midana.exe $(VP)/lanck.exe $(VP)/sysinfdsrv.exe $(VP)/findwin.exe \ | |
52 | + $(VP)/getsysm.exe $(VP)/midiapi.exe $(VP)/play.exe $(VP)/sendevt.exe \ | |
53 | + $(VP)/shutdown.exe $(VP)/sysperf.exe $(VP)/winmidisample.exe \ | |
54 | + $(VP)/dgclient.exe $(VP)/dgserver.exe | |
51 | 55 | |
52 | -TARGETS_MS = $(VP)/cpuid.exe $(VP)/ctrain.exe $(VP)/df.exe $(VP)/dgclient.exe $(VP)/dgserver.exe $(VP)/getip.exe $(VP)/lanck.exe $(VP)/lsc.exe $(VP)/midana.exe $(VP)/miscclient.exe $(VP)/miscserver.exe $(VP)/netpf.exe $(VP)/sndtimer.exe $(VP)/sysinfd.exe $(VP)/regsv.exe $(VP)/sendevt.exe $(VP)/shutdown.exe $(VP)/sysinfdsrv.exe $(VP)/sysinfd_win.exe $(VP)/sysperf.exe $(VP)/winmidisample.exe $(VP)/midiapi.exe $(VP)/pcap_test.exe $(VP)/play.exe $(VP)/joytest.exe $(VP)/icmpsnd.exe $(VP)/getver.exe $(VP)/getsysm.exe $(VP)/findwin.exe $(VP)/dxshow.exe $(VP)/clip.exe $(VP)/readevt.exe $(VP)/midic.exe | |
56 | +TARGETS_MS = $(VP)/cpuid.exe $(VP)/ctrain.exe $(VP)/df.exe $(VP)/lsc.exe $(VP)/miscclient.exe $(VP)/miscserver.exe $(VP)/netpf.exe $(VP)/sndtimer.exe $(VP)/sysinfd.exe $(VP)/regsv.exe $(VP)/sysinfd_win.exe $(VP)/pcap_test.exe $(VP)/joytest.exe $(VP)/icmpsnd.exe $(VP)/getver.exe $(VP)/dxshow.exe $(VP)/clip.exe $(VP)/readevt.exe $(VP)/midic.exe | |
53 | 57 | |
54 | 58 | all: $(TARGETS) |
55 | 59 |
@@ -93,13 +97,13 @@ $(VP)/deltag.exe : deltag.c | ||
93 | 97 | $(CC) $? $(NOLOGO) -o $@ |
94 | 98 | |
95 | 99 | $(VP)/df.exe : df.c |
96 | - $(CC) $? $(NOLOGO) -o $@ mpr.lib | |
100 | + $(CC) $? $(NOLOGO) -o $@ -lmpr | |
97 | 101 | |
98 | 102 | $(VP)/dgclient.exe : dgclient.c |
99 | - $(CC) $? $(NOLOGO) -o $@ wsock32.lib | |
103 | + $(CC) $? $(NOLOGO) -o $@ -lwsock32 | |
100 | 104 | |
101 | 105 | $(VP)/dgserver.exe : dgserver.c |
102 | - $(CC) $? $(NOLOGO) -o $@ wsock32.lib | |
106 | + $(CC) $? $(NOLOGO) -o $@ -lwsock32 | |
103 | 107 | |
104 | 108 | $(VP)/dp.exe : dp.c |
105 | 109 | $(CC) $? $(NOLOGO) -o $@ |
@@ -120,7 +124,7 @@ $(VP)/fold2.exe : fold2.c | ||
120 | 124 | $(CC) $? $(NOLOGO) -o $@ |
121 | 125 | |
122 | 126 | $(VP)/getip.exe : getip.c |
123 | - $(CC) $? $(NOLOGO) -o $@ wsock32.lib | |
127 | + $(CC) $? $(NOLOGO) -o $@ -lwsock32 | |
124 | 128 | |
125 | 129 | $(VP)/getword.exe : getword.c |
126 | 130 | $(CC) $? $(NOLOGO) -o $@ |
@@ -177,7 +181,7 @@ $(VP)/kita2.exe : kita2.c | ||
177 | 181 | $(CC) $? $(NOLOGO) -o $@ |
178 | 182 | |
179 | 183 | $(VP)/lanck.exe : lanck.c |
180 | - $(CC) $? $(NOLOGO) -o $@ wsock32.lib | |
184 | + $(CC) $? $(NOLOGO) -o $@ -lwsock32 | |
181 | 185 | |
182 | 186 | $(VP)/loto6.exe : loto6.c |
183 | 187 | $(CC) $? $(NOLOGO) -o $@ |
@@ -186,16 +190,16 @@ $(VP)/lsc.exe : lsc.c | ||
186 | 190 | $(CC) $? $(NOLOGO) -o $@ |
187 | 191 | |
188 | 192 | $(VP)/midana.exe : midana.c |
189 | - $(CC) $? $(NOLOGO) -o $@ wsock32.lib winmm.lib | |
193 | + $(CC) $? $(NOLOGO) -o $@ -lwsock32 -lwinmm | |
190 | 194 | |
191 | 195 | $(VP)/midic.exe : midic.c |
192 | 196 | $(CC) $? $(NOLOGO) -o $@ |
193 | 197 | |
194 | 198 | $(VP)/miscclient.exe : miscclient.c |
195 | - $(CC) $? $(NOLOGO) -o $@ wsock32.lib | |
199 | + $(CC) $? $(NOLOGO) -o $@ -lwsock32 | |
196 | 200 | |
197 | 201 | $(VP)/miscserver.exe : miscserver.c |
198 | - $(CC) $? $(NOLOGO) -o $@ wsock32.lib | |
202 | + $(CC) $? $(NOLOGO) -o $@ -lwsock32 | |
199 | 203 | |
200 | 204 | $(VP)/mkfile2.exe : mkfile2.c |
201 | 205 | $(CC) $? $(NOLOGO) -o $@ |
@@ -255,7 +259,7 @@ $(VP)/subdecode.exe : subdecode.c | ||
255 | 259 | $(CC) $? $(NOLOGO) -o $@ |
256 | 260 | |
257 | 261 | $(VP)/sysinfd.exe : sysinfd.c |
258 | - $(CC) $? $(NOLOGO) -o $@ -I$(PSDKINC) $(PSDKLIB)\kernel32.lib wsock32.lib | |
262 | + $(CC) $? $(NOLOGO) -o $@ -I$(PSDKINC) -lkernel32 -lwsock32 | |
259 | 263 | |
260 | 264 | $(VP)/tbl2csv.exe : tbl2csv.c |
261 | 265 | $(CC) $? $(NOLOGO) -o $@ |
@@ -276,10 +280,10 @@ $(VP)/train.exe : train.c | ||
276 | 280 | $(CC) $? $(NOLOGO) -o $@ |
277 | 281 | |
278 | 282 | $(VP)/u2dos.exe : u2dos.c |
279 | - $(CC) $? $(NOLOGO) -o $@ | |
283 | + $(CC) $? $(NOLOGO) -o $@ -DMINGW | |
280 | 284 | |
281 | 285 | $(VP)/clip.exe : clip.cpp |
282 | - $(CC) $? $(NOLOGO) -o $@ user32.lib mpr.lib | |
286 | + $(CC) $? $(NOLOGO) -o $@ -luser32 -lmpr | |
283 | 287 | |
284 | 288 | $(VP)/du.exe : du.c |
285 | 289 | $(CC) $? $(NOLOGO) -o $@ $(SJISOPT) |
@@ -291,7 +295,7 @@ $(VP)/expr2.exe : expr2.c | ||
291 | 295 | $(CC) $? $(NOLOGO) -o $@ |
292 | 296 | |
293 | 297 | $(VP)/findwin.exe : findwin.c |
294 | - $(CC) $? $(NOLOGO) -o $@ user32.lib | |
298 | + $(CC) $? $(NOLOGO) -o $@ -luser32 | |
295 | 299 | |
296 | 300 | $(VP)/fullpath.exe : fullpath.c |
297 | 301 | $(CC) $? $(NOLOGO) -o $@ |
@@ -300,10 +304,10 @@ $(VP)/getmypath.exe : getmypath.c | ||
300 | 304 | $(CC) $? $(NOLOGO) -o $@ |
301 | 305 | |
302 | 306 | $(VP)/getsysm.exe : getsysm.c |
303 | - $(CC) $? $(NOLOGO) -o $@ user32.lib | |
307 | + $(CC) $? $(NOLOGO) -o $@ -luser32 | |
304 | 308 | |
305 | 309 | $(VP)/getver.exe : getver.cpp |
306 | - $(CC) $? $(NOLOGO) -o $@ version.lib | |
310 | + $(CC) $? $(NOLOGO) -o $@ -lversion | |
307 | 311 | |
308 | 312 | $(VP)/icmpsnd.exe : icmpsnd.c |
309 | 313 | $(CC) $? $(NOLOGO) -o $@ -ID:\MSPlatformSDK\Include D:\MSPlatformSDK\lib\IPHlpApi.Lib wsock32.lib |
@@ -318,13 +322,13 @@ $(VP)/malloc.exe : malloc.c | ||
318 | 322 | $(CC) $? $(NOLOGO) -o $@ |
319 | 323 | |
320 | 324 | $(VP)/midiapi.exe : midiapi.c |
321 | - $(CC) $? $(NOLOGO) -o $@ winmm.lib | |
325 | + $(CC) $? $(NOLOGO) -o $@ -lwinmm | |
322 | 326 | |
323 | -pcap_test.exe : pcap_test.c | |
324 | - $(CC) $? $(NOLOGO) -o $@ -Ipcap/Include /DWIN32 /DWPCAP | |
327 | +$(VP)/pcap_test.exe : pcap_test.c | |
328 | + $(CC) $? $(NOLOGO) -o $@ -Ipcap/Include -DWIN32 -DWPCAP | |
325 | 329 | |
326 | 330 | $(VP)/play.exe : play.c |
327 | - $(CC) $? $(NOLOGO) -o $@ Winmm.lib | |
331 | + $(CC) $? $(NOLOGO) -o $@ -lWinmm | |
328 | 332 | |
329 | 333 | $(VP)/rand2.exe : rand2.c |
330 | 334 | $(CC) $? $(NOLOGO) -o $@ |
@@ -339,25 +343,25 @@ $(VP)/readls.exe : readls.c | ||
339 | 343 | $(CC) $? $(NOLOGO) -o $@ |
340 | 344 | |
341 | 345 | $(VP)/regsv.exe : regsv.cpp |
342 | - $(CC) $? $(NOLOGO) -o $@ advapi32.lib | |
346 | + $(CC) $? $(NOLOGO) -o $@ -ladvapi32 | |
343 | 347 | |
344 | 348 | $(VP)/rndplay.exe : rndplay.c |
345 | 349 | $(CC) $? $(NOLOGO) -o $@ |
346 | 350 | |
347 | 351 | $(VP)/sendevt.exe : sendevt.c |
348 | - $(CC) $? $(NOLOGO) -o $@ user32.lib | |
352 | + $(CC) $? $(NOLOGO) -o $@ -luser32 | |
349 | 353 | |
350 | 354 | $(VP)/shutdown.exe : shutdown.c |
351 | - $(CC) $? $(NOLOGO) -o $@ -I$(PSDKINC) user32.lib advapi32.lib $(PSDKLIB)\powrprof.lib | |
355 | + $(CC) $? $(NOLOGO) -o $@ -I$(PSDKINC) -luser32 -ladvapi32 -lpowrprof | |
352 | 356 | |
353 | 357 | $(VP)/strings2.exe : strings2.c |
354 | 358 | $(CC) $? $(NOLOGO) -o $@ |
355 | 359 | |
356 | 360 | $(VP)/sysinfdsrv.exe : sysinfdsrv.c |
357 | - $(CC) $? $(NOLOGO) -o $@ -I$(PSDKINC) $(PSDKLIB)\kernel32.lib wsock32.lib advapi32.lib | |
361 | + $(CC) $? $(NOLOGO) -o $@ -I$(PSDKINC) -lkernel32 -lwsock32 -ladvapi32 | |
358 | 362 | |
359 | 363 | $(VP)/sysperf.exe : sysperf.c |
360 | - $(CC) $? $(NOLOGO) -o $@ advapi32.lib | |
364 | + $(CC) $? $(NOLOGO) -o $@ -ladvapi32 | |
361 | 365 | |
362 | 366 | $(VP)/t64an.exe : t64an.c |
363 | 367 | $(CC) $? $(NOLOGO) -o $@ |
@@ -396,7 +400,7 @@ $(VP)/xalloc.exe : xalloc.c | ||
396 | 400 | $(CC) $? $(NOLOGO) -o $@ |
397 | 401 | |
398 | 402 | $(VP)/winmidisample.exe : winmidisample.c |
399 | - $(CC) $? $(NOLOGO) -o $@ user32.lib winmm.lib gdi32.lib comdlg32.lib | |
403 | + $(CC) $? $(NOLOGO) -o $@ -luser32 -lwinmm -lgdi32 -lcomdlg32 | |
400 | 404 | |
401 | 405 | $(VP)/zusa.exe : zusa.c |
402 | 406 | $(CC) $? $(NOLOGO) -o $@ |