From: hackbard Date: Fri, 13 Dec 2002 19:16:59 +0000 (+0000) Subject: first try, added Makefile X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=b6330116a6aacd6a26f3a57e2b53c6b13ba7d878;p=my-code%2Fdmsd.git first try, added Makefile --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f61c666 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +# Makefile of dmsd + +INCLUDEDIR = /usr/include + +CFLAGS = -O3 -Wall +LIBS = + +OBJS = dmsd + +all: dmsd + +clean: + rm $(OBJS) diff --git a/dmsd.c b/dmsd.c index 8c29f52..6154927 100644 --- a/dmsd.c +++ b/dmsd.c @@ -7,6 +7,12 @@ #include #include +#include +#include +#include +#include +#include +#include #include "dmsd.h" @@ -17,15 +23,20 @@ int main(int argc,char *argv[]) { /* pid's */ int vpid,apid; /* ip */ - sockaddr_in dbox_addr; + struct sockaddr_in dbox_addr; + /* some ints */ + int status,recvd_bytes; if(argc!=4) { printf("usage: %s