summaryrefslogtreecommitdiff
path: root/omega/Makefile.rules
diff options
context:
space:
mode:
authorDerick Huth <derickhuth@gmail.com>2014-10-06 12:42:34 -0600
committerDerick Huth <derickhuth@gmail.com>2014-10-06 12:42:34 -0600
commit8d73c8fcc75556c1df71dd39dd99783f8f86fc3e (patch)
tree157d627863d76a4c256a27cae27ce2e8566c7ea0 /omega/Makefile.rules
parente87b55ad69f0ac6211daae741b32c8ee9dcbe470 (diff)
parent8c646f24570079eac53e58fcf42d0d4fbc437ee3 (diff)
downloadchill-8d73c8fcc75556c1df71dd39dd99783f8f86fc3e.tar.gz
chill-8d73c8fcc75556c1df71dd39dd99783f8f86fc3e.tar.bz2
chill-8d73c8fcc75556c1df71dd39dd99783f8f86fc3e.zip
Merge pull request #2 from dhuth/master
Moved omega into chill.
Diffstat (limited to 'omega/Makefile.rules')
-rw-r--r--omega/Makefile.rules37
1 files changed, 37 insertions, 0 deletions
diff --git a/omega/Makefile.rules b/omega/Makefile.rules
new file mode 100644
index 0000000..ead5bc3
--- /dev/null
+++ b/omega/Makefile.rules
@@ -0,0 +1,37 @@
+# DON'T EDIT -- put changes in Makefile.config.
+
+.SUFFIXES:
+.PHONY: all depend clean veryclean depend_self clean_self veryclean_self
+
+# Executable target; can have only one per directory
+$(EXEC_TARGET): $(OBJS)
+ $(CC) $(CFLAGS) $(LIB_PATH) $(OBJS) $(LIBS) -o $(EXEC_TARGET)
+
+# Library target; can have only one per directory
+$(LIB_TARGET): $(OBJS)
+ $(AR) -rs $(LIB_TARGET) $(OBJS)
+
+
+# Implicit rules: make C files in ../src/ directory
+
+%.o: ../src/%.c
+ $(CC) $(CFLAGS) $(INCL_PATH) -c $<
+
+%.o: %.cc
+ $(CC) $(CFLAGS) $(INCL_PATH) -c $<
+
+%.o: ../src/%.cc
+ $(CC) $(CFLAGS) $(INCL_PATH) -c $<
+
+#Special rule for .cc files in basic directory, ConstString and Link
+%.o: $(BASEDIR)/basic/src/%.cc
+ $(CC) $(CFLAGS) $(INCL_PATH) -c $<
+
+depend_self:
+ $(CC) $(DEPENDENCE_CFLAGS) $(INCL_PATH) $(SRCS) > Makefile.deps
+
+clean_self:
+ -rm -f *.o
+
+veryclean_self: clean_self
+ -rm -f $(LIB_TARGET) $(EXEC_TARGET)