File: run-testsuite

package info (click to toggle)
http-parser 2.9.4-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,296 kB
  • sloc: ansic: 6,623; makefile: 130
file content (17 lines) | stat: -rwxr-xr-x 453 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) -DHTTP_PARSER_STRICT=0
CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)

all: test_auto
	./test_auto

test_auto: test_auto.o
	$(CC) $(CFLAGS) $(LDFLAGS) $< -lhttp_parser -o $@

test_auto.o: test_auto.c
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@

test_auto.c: test.c
	sed -e 's/#include "http_parser.h"/#include <http_parser.h>/' <$< >$@