summaryrefslogtreecommitdiff
path: root/test/Makefile
blob: 3c8c410856ba87e79ba650cf1978322ebaf59ab7 (plain)
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
#
# iniparser tests Makefile
#

CC      = gcc
CFLAGS  = -g -I../src
LFLAGS  = -L.. -liniparser
AR	    = ar
ARFLAGS = rcv
RM      = rm -f


default: all

all: iniexample parse iniexample_thread

iniexample: iniexample.c
	$(CC) $(CFLAGS) -o iniexample iniexample.c -I../src -L.. -liniparser

parse: parse.c
	$(CC) $(CFLAGS) -o parse parse.c -I../src -L.. -liniparser

iniexample_thread: iniexample_thread.c
	$(CC) $(CFLAGS) -o iniexample_thread iniexample_thread.c -I../src -L.. -liniparser -lpthread

clean veryclean:
	$(RM) iniexample example.ini parse iniexample_thread example_*.ini