Skip to content
This repository
Newer
Older
100644 24 lines (17 sloc) 0.369 kb
dd61c202 »
2011-07-25 Adding libhtparse....
1 SRC = htparse.c
2 OUT = libhtparse.a
3 OBJ = $(SRC:.c=.o)
4 INCLUDES = -I.
5 CFLAGS += -ggdb -Wall -Wextra
6 LDFLAGS +=
7 CC = gcc
8
9 .SUFFIXES: .c
10
11 default: $(OUT)
12
13 .c.o:
14 $(CC) $(INCLUDES) $(CFLAGS) -c $< -o $@
15
16 $(OUT): $(OBJ)
17 ar rcs $(OUT) $(OBJ)
18
19 test: $(OUT) test.c
20 $(CC) $(INCLUDES) $(CFLAGS) test.c -o test $(OUT)
21
22 clean:
23 rm -f $(OBJ) $(OUT) test
Something went wrong with that request. Please try again.