blob: 3c4b6a89d1689b3be089078205f75840b8fa734a (
plain) (
blame)
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
|
.POSIX:
target = libqstd.a
includes = -I../qstd
defines = -Dplat_x86 -Dplat_posix -Dallocation_default_alignment=8
cflags = -std=c90 -pedantic -Wall -Wextra $(DEBUG_COMPILE_FLAG) $(includes) $(defines)
lflags = $(DEBUG_LINK_FLAG)
objects = plat.o memory.o str.o
.PHONY: all clean
all: $(target)
memory.o: memory.c memory.h plat.h
$(CC) -c $(cflags) memory.c -o memory.o
plat.o: plat.c plat.h
$(CC) -c $(cflags) plat.c -o plat.o
str.o: str.c str.h
$(CC) -c $(cflags) str.c -o str.o
$(target): $(objects)
$(AR) -rcs $(target) $(objects)
clean:
rm -f $(target)
rm -f $(objects)
|