mirror of
https://github.com/moparisthebest/spdylay
synced 2024-11-14 05:25:07 -05:00
b189e291a9
htparse is written by Mark Ellzey and part of libevhtp. https://github.com/ellzey/libevhtp The included code are modified by me for bugfixes. See my fork: https://github.com/tatsuhiro-t/libevhtp/tree/master/htparse
24 lines
369 B
Makefile
24 lines
369 B
Makefile
SRC = htparse.c
|
|
OUT = libhtparse.a
|
|
OBJ = $(SRC:.c=.o)
|
|
INCLUDES = -I.
|
|
CFLAGS += -ggdb -Wall -Wextra
|
|
LDFLAGS +=
|
|
CC = gcc
|
|
|
|
.SUFFIXES: .c
|
|
|
|
default: $(OUT)
|
|
|
|
.c.o:
|
|
$(CC) $(INCLUDES) $(CFLAGS) -c $< -o $@
|
|
|
|
$(OUT): $(OBJ)
|
|
ar rcs $(OUT) $(OBJ)
|
|
|
|
test: $(OUT) test.c
|
|
$(CC) $(INCLUDES) $(CFLAGS) test.c -o test $(OUT)
|
|
|
|
clean:
|
|
rm -f $(OBJ) $(OUT) test
|