summaryrefslogtreecommitdiffstats
path: root/private/eventlog/makefil0
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/eventlog/makefil0
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/eventlog/makefil0')
-rw-r--r--private/eventlog/makefil048
1 files changed, 48 insertions, 0 deletions
diff --git a/private/eventlog/makefil0 b/private/eventlog/makefil0
new file mode 100644
index 000000000..d9488c71e
--- /dev/null
+++ b/private/eventlog/makefil0
@@ -0,0 +1,48 @@
+#
+# This is the MIDL compile phase of the build process.
+#
+# The following is where you put the name of your .idl file without
+# the .idl extension:
+#
+
+!INCLUDE $(NTMAKEENV)\makefile.plt
+
+ELFIDL=elf
+
+CLIENT_FILES=elfclnt\$(ELFIDL)_c.c $(ELFIDL).h
+SERVER_FILES=server\$(ELFIDL)_s.c
+LOCAL_FILES=$(ELFIDL)_c.c $(ELFIDL)_s.c
+
+INCS= -I$(BASEDIR)\public\sdk\inc -I$(BASEDIR)\public\sdk\inc\crt
+
+ELFMIDLARGS=-oldnames -error allocation -error ref -ms_ext -c_ext \
+ -cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) $(INCS)
+
+#
+# Define Products and Dependencies
+#
+
+all: $(CLIENT_FILES) $(SERVER_FILES) del_elf_sources
+!IF "$(BUILDMSG)" != ""
+ @ech ; $(BUILDMSG) ;
+!ENDIF
+
+clean: delete_source all
+
+delete_source:
+ -erase $(CLIENT_FILES) $(SERVER_FILES) $(LOCAL_FILES)
+
+#
+# MIDL COMPILE
+#
+
+$(CLIENT_FILES): $(ELFIDL).idl
+ midl -Oi $(ELFMIDLARGS) $(ELFIDL).idl
+ copy $(ELFIDL)_c.c elfclnt\$(ELFIDL)_c.c
+
+$(SERVER_FILES): $(ELFIDL).idl
+ midl -client none $(ELFMIDLARGS) $(ELFIDL).idl
+ copy $(ELFIDL)_s.c server\$(ELFIDL)_s.c
+
+del_elf_sources:
+ -del $(LOCAL_FILES) 1> NUL 2>NUL