summaryrefslogtreecommitdiff
path: root/generate/unix/Makefile.rules
diff options
context:
space:
mode:
Diffstat (limited to 'generate/unix/Makefile.rules')
-rw-r--r--generate/unix/Makefile.rules23
1 files changed, 23 insertions, 0 deletions
diff --git a/generate/unix/Makefile.rules b/generate/unix/Makefile.rules
new file mode 100644
index 0000000000000..184630cd53848
--- /dev/null
+++ b/generate/unix/Makefile.rules
@@ -0,0 +1,23 @@
+#
+# Common rules for generation of ACPICA utilities
+#
+# FINAL_PROG - Copies the utility to the local binXX directory (32/64)
+# PROG - Builds the utility (links the object files)
+#
+# Note: $(INTERMEDIATES) and $(MISC) are used for iASL compiler only.
+#
+
+$(FINAL_PROG) : $(PROG)
+ $(COPYPROG)
+
+$(PROG) : $(INTERMEDIATES) $(MISC) $(OBJECTS)
+ $(LINKPROG)
+
+$(OBJDIR)/%.o : %.c $(HEADERS) $(ACPICA_HEADERS)
+ $(COMPILEOBJ)
+
+clean :
+ rm -f $(PROG) $(PROG).exe $(OBJECTS) $(INTERMEDIATES) $(MISC)
+
+install :
+ $(INSTALLPROG)