summaryrefslogtreecommitdiff
path: root/omegalib/examples/c_code/Makefile
blob: 5d4dd61faef970560650cfdf042e9786730c43a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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