root/Makefile @ 368d31d4
4a634bca | Hamish Coleman | ||
368d31d4 | Hamish Coleman | all: wconsd.exe portenum.exe svctest.exe
|
|
4a634bca | Hamish Coleman | ||
get:
|
|||
1b031c2b | Hamish Coleman | pscp 192.168.1.1:s/src/wconsd/*.c ./
|
|
4a634bca | Hamish Coleman | ||
put:
|
|||
4450bbca | Hamish Coleman | pscp ./*.exe ./*.c 192.168.1.1:s/src/wconsd/
|
|
4a634bca | Hamish Coleman | ||
e592f8f7 | Hamish Coleman | CFLAGS:=-Wall
|
|
dafae8e7 | Hamish Coleman | #CC:=gcc
|
|
CC:=i586-mingw32msvc-gcc
|
|||
4a634bca | Hamish Coleman | ||
5ddf869b | Hamish Coleman | LIBCLI:=libcli/libcli.o
|
|
6f662bc7 | Hamish Coleman | wconsd.c: debug.h scm.h
|
|
win-scm.c: scm.h
|
|||
dafae8e7 | Hamish Coleman | modules.c: module.h
|
|
MODULES:=modules.o win-scm.o
|
|||
wconsd.exe: wconsd.o $(MODULES) $(LIBCLI)
|
|||
e592f8f7 | Hamish Coleman | $(CC) -o $@ $^ -lws2_32
|
|
a584276e | Hamish Coleman | ||
368d31d4 | Hamish Coleman | svctest.exe: svctest.o win-scm.c
|
|
$(CC) -o $@ $^
|
|||
121e6b56 | Hamish Coleman | portenum.exe: portenum.c
|
|
6f662bc7 | Hamish Coleman | $(CC) $(CFLAGS) -o $@ portenum.c -lwinspool -lsetupapi
|
|
121e6b56 | Hamish Coleman | ||
695889f3 | Hamish Coleman | test: wconsd.exe
|
|
./wconsd.exe -d
|
|||
780d7607 | Hamish Coleman | wconsd: wconsd.c
|
|
e592f8f7 | Hamish Coleman | winegcc -Wall -mno-cygwin -mwindows -o $@ wconsd.c -lws2_32
|
|
780d7607 | Hamish Coleman | ||
wine: wconsd
|
|||
/usr/lib/wine/wine.bin wconsd.exe.so -p 9600
|
|||
dafae8e7 | Hamish Coleman | clean:
|
|
368d31d4 | Hamish Coleman | rm -f *.o wconsd.exe portenum.exe svctest.exe
|