summaryrefslogtreecommitdiff
path: root/cfg/Makefile
blob: e10e70f34ccd4840d660a2ecd3fbf5177264a515 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.POSIX:
target = libcfg.a
includes = -I../qstd
cflags = -std=c90 -pedantic -Wall -Wextra $(DEBUG_COMPILE_FLAG) $(includes)
lflags = $(DEBUG_LINK_FLAG)

objects = cfgparse.o

.PHONY: all clean

all: $(target)

cfgparse.o: cfgparse.c cfgparse.h
	$(CC) -c $(cflags) cfgparse.c -o cfgparse.o

$(target): $(objects)
	$(AR) -rcs $(target) $(objects)

clean:
	rm -f $(target)
	rm -f $(objects)