File:  [Public anonymous repository] / mmondor / mmsoftware / cl / server / GNUmakefile
Revision 1.13: download - view: text, annotated - select for diffs - revision graph
Mon Apr 15 11:22:56 2013 UTC (18 months, 2 weeks ago) by mmondor
Branches: MAIN
CVS tags: HEAD
Now also set the TMPDIR environment variable to '/var/tmp/' because ECL
cannot reliably load dynamic modules from a non-executable /tmp/

    1:	MODULES := character dlist syslog ecl-mp-server html const-file embedded-files io httpd
    2:	FASLS := $(addsuffix .fas,$(MODULES))
    3:	OBJECTS := $(addsuffix .o,$(MODULES))
    4:	
    5:	APPLICATIONS := $(addsuffix .fas,crow-test-applications)
    6:	CONFIGS := httpd-config.lisp mime-types.lisp
    7:	ECL := TMPDIR=/var/tmp/ /usr/local/ecl/bin/ecl -norc
    8:	TAR := tar
    9:	
   10:	ARCHIVE := crow-httpd.tgz
   11:	BINARY := crow-httpd
   12:	
   13:	all: $(ARCHIVE) $(BINARY)
   14:	
   15:	embedded-files.fas: htdocs/crow-httpd-logo.png htdocs/crow-httpd.css htdocs/valid-xhtml.png htdocs/crow-httpd-icon.png
   16:	
   17:	$(ARCHIVE): $(FASLS) $(APPLICATIONS)
   18:		tar czvf $(ARCHIVE) $(FASLS) $(APPLICATIONS) $(CONFIGS)
   19:	
   20:	$(BINARY): $(ARCHIVE) $(FASLS) $(OBJECTS)
   21:		$(ECL) -o crow-httpd -link $(OBJECTS)
   22:	
   23:	%.fas: %.lisp
   24:		$(ECL) -compile $<
   25:	
   26:	%.o: %.lisp
   27:		$(ECL) -eval '(pushnew :mm-ecl-standalone *features*)' -o $@ -s -compile $<
   28:	
   29:	clean:
   30:		rm -f $(APPLICATIONS) $(BINARY) $(ARCHIVE) $(OBJECTS) $(FASLS) ecl?????? ecl????????? ecl?????????.* ecl-swank-tmpfile-* *.c *.eclh *.data *~
   31:	
   32:	install:
   33:		groupadd crow-httpd || true
   34:		install -c -o 0 -g crow-httpd -m 550 crow-httpd /usr/local/sbin
   35:		install -c -o 0 -g crow-httpd -m 550 crow-test-applications.fas /usr/local/libexec