diff options
author | dhuth <derickhuth@gmail.com> | 2014-11-21 13:35:20 -0700 |
---|---|---|
committer | dhuth <derickhuth@gmail.com> | 2014-11-21 13:35:20 -0700 |
commit | a1834b22c43c282442b0cb164767e6c877cf0e5b (patch) | |
tree | bedc5be7d1bdb8d32c1868caa496a8a1530d8d8a /omega/Makefile.rules | |
parent | ded84bb4aec7461738e7b7033d782a518e2c606b (diff) | |
parent | eb9236c5353785472ae132f27e1cfb9f1e4264a5 (diff) | |
download | chill-a1834b22c43c282442b0cb164767e6c877cf0e5b.tar.gz chill-a1834b22c43c282442b0cb164767e6c877cf0e5b.tar.bz2 chill-a1834b22c43c282442b0cb164767e6c877cf0e5b.zip |
Merge branch 'master' into doe
Diffstat (limited to 'omega/Makefile.rules')
-rw-r--r-- | omega/Makefile.rules | 37 |
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) |