1SubDir HAIKU_TOP src apps poorman ;
2
3# disable -Werror for this directory only
4SubDirCcFlags -Wno-error ;
5
6SubDirCcFlags [ FDefines HAVE__PROGNAME=1 HAVE_FCNTL_H=1 HAVE_GRP_H=1 HAVE_MEMORY_H=1 HAVE_POLL_H=1 HAVE_SYS_POLL_H=1 TIME_WITH_SYS_TIME=1 HAVE_DIRENT_H=1 HAVE_STRERROR=1 HAVE_WAITPID=1 HAVE_VSNPRINTF=1 HAVE_SETSID=1 HAVE_SIGSET=1 HAVE_ATOLL=1 HAVE_UNISTD_H=1 HAVE_GETPAGESIZE=1 HAVE_MMAP=1 HAVE_SELECT=1 HAVE_POLL=1 HAVE_TM_GMTOFF=1 HAVE_SOCKLENT=1 HAVE_INT64T=1 ] ;
7
8SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src apps poorman libhttpd ] ;
9
10rule THTTPMakeHeader header : text
11{
12        header = [ FGristFiles $(header) ] ;
13        text = [ FGristFiles $(text) ] ;
14
15        SEARCH on $(text) = $(SEARCH_SOURCE) ;
16        MakeLocateArch $(header) ;
17
18        Depends $(header) : $(text) ;
19        LocalClean clean : $(header) ;
20
21        THTTPMakeHeader1 $(header) : $(text) ;
22}
23
24actions THTTPMakeHeader1
25{
26		rm -f $(1)
27		sed < $(2) > $(1) \
28			-e 's/#.*//' -e 's/[ 	]*$//' -e '/^$/d' \
29			-e 's/[ 	][ 	]*/", 0, "/' -e 's/^/{ "/' -e 's/$/", 0 },/'
30}
31
32THTTPMakeHeader mime_encodings.h : mime_encodings.txt ;
33THTTPMakeHeader mime_types.h : mime_types.txt ;
34
35UsePrivateHeaders shared ;
36
37AddResources PoorMan : PoorMan.rdef ;
38
39Application PoorMan : PoorMan.cpp
40	PoorManWindow.cpp
41	PoorManView.cpp
42	PoorManAdvancedView.cpp
43	StatusSlider.cpp
44	PoorManServer.cpp
45	PoorManSiteView.cpp
46	PoorManLogger.cpp
47	PoorManLoggingView.cpp
48	PoorManPreferencesWindow.cpp
49	PoorManApplication.cpp
50	constants.cpp
51
52	# libhttpd
53	libhttpd.c
54	match.c
55	tdate_parse.c
56
57	: be network tracker [ TargetLibstdc++ ] localestub
58	;
59
60
61DoCatalogs PoorMan :
62	x-vnd.Haiku-PoorMan
63	:
64	constants.cpp
65	PoorManAdvancedView.cpp
66	PoorManLoggingView.cpp
67	PoorManPreferencesWindow.cpp
68	PoorManWindow.cpp
69;
70