source: rtems/c/src/libnetworking/rtems_webserver/Makefile.am @ e89694e

Last change on this file since e89694e was e89694e, checked in by Joel Sherrill <joel.sherrill@…>, on May 31, 2000 at 10:31:26 PM

Distributed the preinstall of the header files to the directories
owning the header files.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1##
2## $Id$
3##
4
5AUTOMAKE_OPTIONS = foreign 1.4
6
7LIBNAME = lib.a
8LIB = $(ARCH)/$(LIBNAME)
9
10C_FILES = asp.c balloc.c wbase64.c default.c ejlex.c ejparse.c form.c h.c \
11    handler.c mime.c misc.c webpage.c ringq.c rom.c security.c socket.c \
12    sym.c uemf.c url.c value.c webrom.c webs.c websuemf.c webmain.c
13C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
14
15OBJS = $(C_O_FILES)
16
17H_FILES = ej.h uemf.h webs.h wsIntrn.h
18
19include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
20include $(top_srcdir)/../../../automake/lib.am
21
22#
23# Add local stuff here using +=
24#
25
26AM_CPPFLAGS += -DWEBS -DUEMF -DOS="RTEMS"
27
28$(LIB): $(OBJS)
29        $(make-library)
30
31$(PROJECT_INCLUDE):
32        $(mkinstalldirs) $@
33
34$(PROJECT_INCLUDE)/goahead:
35        $(mkinstalldirs) $@
36
37$(PROJECT_INCLUDE)/goahead/%.h: %.h
38        $(INSTALL_DATA) $< $@
39
40$(PROJECT_INCLUDE)/rtems_webserver.h: rtems_webserver.h
41        $(INSTALL_DATA) $< $@
42
43PREINSTALL_FILES += $(PROJECT_INCLUDE) \
44    $(PROJECT_INCLUDE)/rtems_webserver.h $(PROJECT_INCLUDE)/goahead \
45    $(H_FILES:%.h=$(PROJECT_INCLUDE)/goahead/%.h)
46
47if HAS_POSIX
48all-local: $(PREINSTALL_FILES) $(ARCH) $(OBJS) $(LIB)
49endif
50
51.PRECIOUS: $(LIB)
52
53EXTRA_DIST = asp.c balloc.c default.c ej.h ejlex.c ejparse.c form.c h.c \
54    handler.c mime.c misc.c ringq.c rom.c rtems_webserver.h security.c \
55    socket.c sym.c uemf.c uemf.h url.c value.c wbase64.c webcomp.c webmain.c \
56    webpage.c webrom.c webs.c webs.h websuemf.c wsIntrn.h
57
58include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.