summaryrefslogtreecommitdiff
path: root/src/NMakefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/NMakefile')
-rw-r--r--src/NMakefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/NMakefile b/src/NMakefile
new file mode 100644
index 0000000..562fb90
--- /dev/null
+++ b/src/NMakefile
@@ -0,0 +1,52 @@
+CYGWIN_DIR = C:\cygwin
+CYGWIN_PATH = C:\cygwin\bin
+
+CONFUSE_DIR = C:\develop\confuse-2.7
+PTHREADS_W32_DIR = C:\develop\pthreads-w32-2-9-1-release
+NANOMSG_DIR = C:\develop\nanomsg-0.4-beta
+
+GENGETOPT = $(CYGWIN_DIR)\usr\local\bin\gengetopt.exe
+
+!IFNDEF CC
+CC = cl
+!ENDIF
+!IFNDEF LINK
+LINK = link
+!ENDIF
+
+INCLUDE_DIRS = \
+ /I$(CONFUSE_DIR)\include \
+ /I$(PTHREADS_W32_DIR) \
+ /I$(NANOMSG_DIR)\include
+
+CLFLAGS = /TP /MD /W2 /WX /nologo /O2 $(INCLUDE_DIRS)
+LINKFLAGS = /nologo
+LIBS =
+
+.SUFFIXES: .c .obj .exe
+
+.c.obj:
+ $(CC) $(CLFLAGS) /c /Fo$@ $<
+
+all: biruda.exe
+
+biruda.exe: biruda.obj biruda_cmdline.obj master.obj coordinator.obj worker.obj
+ $(LINK) $(LINKFLAGS) -$(LIBS) /out:$@ $**
+
+biruda_cmdline.obj: biruda_cmdline.c
+biruda.obj: biruda.c biruda_cmdline.h master.h coordinator.h worker.h sleep.h
+master.obj: master.c master.h sleep.h
+coordinator.obj: coordinator.c coordinator.h sleep.h
+worker.obj: worker.c worker.h
+
+biruda_cmdline.c: biruda.ggo
+ $(GENGETOPT) -F biruda_cmdline --unamed-opts --conf-parser --include-getopt -i $**
+
+biruda_cmdline.h: biruda.ggo
+ $(GENGETOPT) -F biruda_cmdline --unamed-opts --conf-parser --include-getopt -i $**
+
+clean:
+ @-erase *.obj 2>NUL
+ @-erase biruda.exe 2>NUL
+ @-erase biruda_cmdline.h biruda_cmdline.c 2>NUL
+