xref: /haiku/src/apps/poorman/Jamfile (revision 788e359072485f0439a9bed8278168aed8fe023b)
1SubDir HAIKU_TOP src apps poorman ;
2
3SubDirCcFlags [ 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 ] ;
4
5SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src apps poorman libhttpd ] ;
6
7rule THTTPMakeHeader header : text
8{
9        header = [ FGristFiles $(header) ] ;
10        text = [ FGristFiles $(text) ] ;
11
12        SEARCH on $(text) = $(SEARCH_SOURCE) ;
13        MakeLocateArch $(header) ;
14
15        Depends $(header) : $(text) ;
16        LocalClean clean : $(header) ;
17
18        THTTPMakeHeader1 $(header) : $(text) ;
19}
20
21actions THTTPMakeHeader1
22{
23		rm -f $(1)
24		sed < $(2) > $(1) \
25			-e 's/#.*//' -e 's/[ 	]*$//' -e '/^$/d' \
26			-e 's/[ 	][ 	]*/", 0, "/' -e 's/^/{ "/' -e 's/$/", 0 },/'
27}
28
29THTTPMakeHeader mime_encodings.h : mime_encodings.txt ;
30THTTPMakeHeader mime_types.h : mime_types.txt ;
31
32UsePrivateHeaders shared ;
33
34AddResources PoorMan : PoorMan.rdef ;
35
36Application PoorMan : PoorMan.cpp
37	PoorManWindow.cpp
38	PoorManView.cpp
39	PoorManAdvancedView.cpp
40	StatusSlider.cpp
41	PoorManServer.cpp
42	PoorManSiteView.cpp
43	PoorManLogger.cpp
44	PoorManLoggingView.cpp
45	PoorManPreferencesWindow.cpp
46	PoorManApplication.cpp
47	constants.cpp
48
49	# libhttpd
50	libhttpd.c
51	match.c
52	tdate_parse.c
53
54	: be network tracker [ TargetLibstdc++ ] localestub
55	;
56
57
58DoCatalogs PoorMan :
59	x-vnd.Haiku-PoorMan
60	:
61	constants.cpp
62	PoorManAdvancedView.cpp
63	PoorManLoggingView.cpp
64	PoorManPreferencesWindow.cpp
65	PoorManWindow.cpp
66;
67