-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathSimpleIni.mk
More file actions
31 lines (25 loc) · 778 Bytes
/
SimpleIni.mk
File metadata and controls
31 lines (25 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# Makefile de SimpleIni
#
# CFLAGS_RELEASE := -02
# CFLAGS_DEBUG := -g -Wall
CFLAGS=-ggdb3 -O0 -DLINUX -Iinclude
LDFLAGS=-lm
VPATH = src:test:examples
OBJS_test = SimpleIni.o main.o
OBJS_example1 = SimpleIni.o example1.o
OBJS_example2 = SimpleIni.o example2.o
OBJS_example3 = SimpleIni.o example3.o
all: unittest example1 example2 example3
unittest: $(OBJS_test)
g++ -o $@ $(OBJS_test) $(CFLAGS) $(LDFLAGS)
example1: $(OBJS_example1)
g++ -o $@ $(OBJS_example1) $(CFLAGS) $(LDFLAGS)
example2: $(OBJS_example2)
g++ -o $@ $(OBJS_example2) $(CFLAGS) $(LDFLAGS)
example3: $(OBJS_example2)
g++ -o $@ $(OBJS_example3) $(CFLAGS) $(LDFLAGS)
clean:
rm -f test example1 example2 example3 $(OBJS_test)
.cpp.o:
g++ $(CFLAGS) -c $<