1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | include $(top_srcdir)/automake/compile.am |
---|
6 | |
---|
7 | EXTRA_LIBRARIES = |
---|
8 | CLEANFILES = |
---|
9 | |
---|
10 | AM_CPPFLAGS += -DWEBS -DUEMF -DOS="RTEMS" |
---|
11 | |
---|
12 | if HAS_NETWORKING |
---|
13 | if HAS_POSIX |
---|
14 | include_goaheaddir = $(includedir)/goahead |
---|
15 | |
---|
16 | include_HEADERS = rtems_webserver.h |
---|
17 | include_goahead_HEADERS = ej.h ejIntrn.h emfdb.h md5.h uemf.h um.h webs.h \ |
---|
18 | wsIntrn.h |
---|
19 | |
---|
20 | EXTRA_LIBRARIES += libhttpd.a |
---|
21 | CLEANFILES += libhttpd.a |
---|
22 | libhttpd_a_SOURCES = asp.c balloc.c default.c ejlex.c ejparse.c emfdb.c \ |
---|
23 | form.c h.c handler.c md5c.c mime.c misc.c webpage.c ringq.c rom.c \ |
---|
24 | security.c sock.c socket.c sym.c uemf.c um.c url.c value.c wbase64.c \ |
---|
25 | webrom.c webs.c websuemf.c webmain.c |
---|
26 | libhttpd_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) |
---|
27 | |
---|
28 | EXTRA_LIBRARIES += libhttpd_g.a |
---|
29 | CLEANFILES += libhttpd_g.a |
---|
30 | libhttpd_g_a_SOURCES = $(libhttpd_a_SOURCES) |
---|
31 | libhttpd_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) |
---|
32 | |
---|
33 | project_lib_DATA = libhttpd$(LIB_VARIANT).a |
---|
34 | endif |
---|
35 | endif |
---|
36 | |
---|
37 | all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) |
---|
38 | |
---|
39 | EXTRA_DIST = webcomp.c webpage.c |
---|
40 | |
---|
41 | PREINSTALL_DIRS = |
---|
42 | PREINSTALL_FILES = |
---|
43 | TMPINSTALL_FILES = |
---|
44 | |
---|
45 | $(PROJECT_INCLUDE)/$(dirstamp): |
---|
46 | @$(mkdir_p) $(PROJECT_INCLUDE) |
---|
47 | @: > $(PROJECT_INCLUDE)/$(dirstamp) |
---|
48 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp) |
---|
49 | |
---|
50 | $(PROJECT_LIB)/$(dirstamp): |
---|
51 | @$(mkdir_p) $(PROJECT_LIB) |
---|
52 | @: > $(PROJECT_LIB)/$(dirstamp) |
---|
53 | TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp) |
---|
54 | |
---|
55 | if HAS_NETWORKING |
---|
56 | if HAS_POSIX |
---|
57 | $(PROJECT_INCLUDE)/goahead/$(dirstamp): |
---|
58 | @$(mkdir_p) $(PROJECT_INCLUDE)/goahead |
---|
59 | @: > $(PROJECT_INCLUDE)/goahead/$(dirstamp) |
---|
60 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/goahead/$(dirstamp) |
---|
61 | |
---|
62 | $(PROJECT_INCLUDE)/rtems_webserver.h: rtems_webserver.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
63 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems_webserver.h |
---|
64 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems_webserver.h |
---|
65 | |
---|
66 | $(PROJECT_INCLUDE)/goahead/ej.h: ej.h $(PROJECT_INCLUDE)/goahead/$(dirstamp) |
---|
67 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/goahead/ej.h |
---|
68 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/goahead/ej.h |
---|
69 | |
---|
70 | $(PROJECT_INCLUDE)/goahead/ejIntrn.h: ejIntrn.h $(PROJECT_INCLUDE)/goahead/$(dirstamp) |
---|
71 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/goahead/ejIntrn.h |
---|
72 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/goahead/ejIntrn.h |
---|
73 | |
---|
74 | $(PROJECT_INCLUDE)/goahead/emfdb.h: emfdb.h $(PROJECT_INCLUDE)/goahead/$(dirstamp) |
---|
75 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/goahead/emfdb.h |
---|
76 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/goahead/emfdb.h |
---|
77 | |
---|
78 | $(PROJECT_INCLUDE)/goahead/md5.h: md5.h $(PROJECT_INCLUDE)/goahead/$(dirstamp) |
---|
79 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/goahead/md5.h |
---|
80 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/goahead/md5.h |
---|
81 | |
---|
82 | $(PROJECT_INCLUDE)/goahead/uemf.h: uemf.h $(PROJECT_INCLUDE)/goahead/$(dirstamp) |
---|
83 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/goahead/uemf.h |
---|
84 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/goahead/uemf.h |
---|
85 | |
---|
86 | $(PROJECT_INCLUDE)/goahead/um.h: um.h $(PROJECT_INCLUDE)/goahead/$(dirstamp) |
---|
87 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/goahead/um.h |
---|
88 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/goahead/um.h |
---|
89 | |
---|
90 | $(PROJECT_INCLUDE)/goahead/webs.h: webs.h $(PROJECT_INCLUDE)/goahead/$(dirstamp) |
---|
91 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/goahead/webs.h |
---|
92 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/goahead/webs.h |
---|
93 | |
---|
94 | $(PROJECT_INCLUDE)/goahead/wsIntrn.h: wsIntrn.h $(PROJECT_INCLUDE)/goahead/$(dirstamp) |
---|
95 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/goahead/wsIntrn.h |
---|
96 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/goahead/wsIntrn.h |
---|
97 | |
---|
98 | $(PROJECT_LIB)/libhttpd$(LIB_VARIANT).a: libhttpd$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp) |
---|
99 | $(INSTALL_DATA) $< $(PROJECT_LIB)/libhttpd$(LIB_VARIANT).a |
---|
100 | TMPINSTALL_FILES += $(PROJECT_LIB)/libhttpd$(LIB_VARIANT).a |
---|
101 | endif |
---|
102 | endif |
---|
103 | |
---|
104 | CLEANFILES += $(PREINSTALL_FILES) |
---|
105 | DISTCLEANFILES = $(PREINSTALL_DIRS) |
---|
106 | CLEANFILES += $(TMPINSTALL_FILES) |
---|
107 | |
---|
108 | include $(top_srcdir)/automake/local.am |
---|