~ubuntu-branches/ubuntu/precise/crossroads/precise

« back to all changes in this revision

Viewing changes to xr/etc/Makefile.class

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ritter
  • Date: 2010-07-05 16:27:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100705162700-0g08tfav8ee9y51u
Tags: upstream-2.65
ImportĀ upstreamĀ versionĀ 2.65

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SRC = $(wildcard *.cc)
 
2
OBJ = $(patsubst %.cc, $(BASE)/xr/$(BUILDDIR)/$(DIR)_%.o, $(SRC))
 
3
DIR = $(shell pwd | sed 's:.*/::')
 
4
SYS = $(shell uname)
 
5
HST = $(shell hostname)
 
6
# CCC = -DCONNECTCHECK_ONLY_WRITABLE
 
7
 
 
8
ifeq ($(HST), Thera.local)
 
9
    ERRFLAG = -Werror
 
10
endif    
 
11
 
 
12
class-compile: $(OBJ)
 
13
 
 
14
$(BASE)/xr/$(BUILDDIR)/$(DIR)_%.o: %.cc
 
15
        @echo "Compiling: " `pwd` $<
 
16
        $(CONF_CC) $(PROF) $(PROFILER) $(CONF_OPTFLAGS) \
 
17
          -DVER='"$(VER)"' -DAUTHOR='"$(AUTHOR)"' -DHST='"$(HST)"' \
 
18
          -DMAINTAINER='"$(MAINTAINER)"' -DDISTSITE='"$(DISTSITE)"' \
 
19
          -DSYS='"$(SYS)"' -D$(SYS) $(MEMDEBUG) $(CCC) \
 
20
          -DCONF_CC='"$(CONF_CC)"' -DCONF_LIB='"$(CONF_LIB)"' \
 
21
          -DCONF_OPTFLAGS='"$(CONF_OPTFLAGS)"' $(CONF_STRNSTR) \
 
22
          $(CONF_GETOPT) $(CONF_GETOPT_LONG) $(CONF_INET_ATON) \
 
23
          -I$(BASE)/xr \
 
24
          -c -g -Wall $(ERRFLAG) -o $@ $<