diff options
author | dhuth <derickhuth@gmail.com> | 2014-10-06 11:56:47 -0600 |
---|---|---|
committer | dhuth <derickhuth@gmail.com> | 2014-10-06 11:56:47 -0600 |
commit | e4b20015a4ee35f1279af4caa983478fa2ff0d4a (patch) | |
tree | f47cbff8b2bba458b54a739e91a87b303f7665f1 /omega/examples/c_code/Makefile | |
parent | 600fa18324c21a162c50c40ae5f00c899a41dd24 (diff) | |
download | chill-e4b20015a4ee35f1279af4caa983478fa2ff0d4a.tar.gz chill-e4b20015a4ee35f1279af4caa983478fa2ff0d4a.tar.bz2 chill-e4b20015a4ee35f1279af4caa983478fa2ff0d4a.zip |
Added omega to source
Diffstat (limited to 'omega/examples/c_code/Makefile')
-rw-r--r-- | omega/examples/c_code/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/omega/examples/c_code/Makefile b/omega/examples/c_code/Makefile new file mode 100644 index 0000000..5d4dd61 --- /dev/null +++ b/omega/examples/c_code/Makefile @@ -0,0 +1,21 @@ +CC = g++ +INC_DIR = -I../../include +LIB_DIR = -L../../lib + +all: example library_example + + +example : example.o ../../lib/libomega.a + ${CC} -g $(LIB_DIR) example.o -lomega -o example + +example.o : example.c + ${CC} -Wall -g $(INC_DIR) -c example.c + +library_example : library_example.o ../../lib/libomega.a + ${CC} -g $(LIB_DIR) library_example.o -lomega -o library_example + +library_example.o : library_example.c + ${CC} -Wall -g $(INC_DIR) -c library_example.c + +clean: + @rm -fr *.o example library_example |