aboutsummaryrefslogtreecommitdiff
path: root/cc/cc-test/src/NMakefile
diff options
context:
space:
mode:
Diffstat (limited to 'cc/cc-test/src/NMakefile')
-rw-r--r--cc/cc-test/src/NMakefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/cc/cc-test/src/NMakefile b/cc/cc-test/src/NMakefile
new file mode 100644
index 0000000..03c73df
--- /dev/null
+++ b/cc/cc-test/src/NMakefile
@@ -0,0 +1,14 @@
+all: $(OUT_DIR)/msvc.lib $(OUT_DIR)/msvc.exe
+
+$(OUT_DIR)/msvc.lib: $(OUT_DIR)/msvc.o
+ lib -nologo -out:$(OUT_DIR)/msvc.lib $(OUT_DIR)/msvc.o
+ rc -h
+
+$(OUT_DIR)/msvc.o: src/msvc.c
+ $(CC) -nologo -c -Fo:$@ src/msvc.c -MD
+
+$(OUT_DIR)/msvc.exe: $(OUT_DIR)/msvc2.o
+ $(CC) -nologo -Fo:$@ $(OUT_DIR)/msvc2.o
+
+$(OUT_DIR)/msvc2.o: src/msvc.c
+ $(CC) -nologo -c -Fo:$@ src/msvc.c -DMAIN -MD