summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-09-18 01:44:35 +0000
committerTuowen Zhao <ztuowen@gmail.com>2016-09-18 01:44:35 +0000
commit2970d942ce8d87c419b738abda5ebace931a6c2a (patch)
tree228301b5780cb6c0f91f051970cd037808d4b4e3
parentba7e08e207e43f72ef6591bdbf7c67e4b1629b39 (diff)
downloadchill-2970d942ce8d87c419b738abda5ebace931a6c2a.tar.gz
chill-2970d942ce8d87c419b738abda5ebace931a6c2a.tar.bz2
chill-2970d942ce8d87c419b738abda5ebace931a6c2a.zip
Add ignored Makefile
-rw-r--r--omegalib/examples/c_code/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/omegalib/examples/c_code/Makefile b/omegalib/examples/c_code/Makefile
new file mode 100644
index 0000000..5d4dd61
--- /dev/null
+++ b/omegalib/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