xref: /haiku/src/apps/poorman/Jamfile (revision 1b80286772b529a3d6de3bbeb0720c62e6a32fed)
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
32AddResources PoorMan : PoorMan.rdef ;
33
34Application PoorMan : PoorMan.cpp
35	PoorManWindow.cpp
36	PoorManView.cpp
37	PoorManAdvancedView.cpp
38	StatusSlider.cpp
39	PoorManServer.cpp
40	PoorManSiteView.cpp
41	PoorManLogger.cpp
42	PoorManLoggingView.cpp
43	PoorManPreferencesWindow.cpp
44	PoorManApplication.cpp
45	constants.cpp
46
47	# libhttpd
48	libhttpd.c
49	match.c
50	tdate_parse.c
51
52	: be network tracker $(TARGET_LIBSTDC++)
53	;
54