#
# $Id: Makefile 3662 2002-01-31 14:17:09Z hohmuth $
#
# Makefile for the sources of the rmgr server
#

# scan the L4 global configuration file
ifeq (${L4_DIR},)
  L4DIR = ../../../..
else
  L4DIR = ${L4_DIR}
endif
include $(L4DIR)/Makeconf

-include Makeconf.local                 # read possible PRIVATE_DIRS

# magic Makeconf vars
L4ALL_INCDIR = -I $(L4DIR)/include
INCLUDES = -I $(L4DIR)/../linux22/include
SRC_CC = l4ctl.cc

# more (non-magic) vars
ALL = l4ctl
LIBS =

CXXFLAGS = -Wall -O -g
LDFLAGS = -g

all: $(ALL)

$(ALL): $(OBJS)
	$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)

###

clean:
	rm -f *.o $(ALL)

cleanall: clean
	rm -f .*.d *~

install: rmgr
	$(INST_MESSAGE)
	$(INSTALL) -d $(L4_INSTALL_DIR)/bin/
	$(INSTALL) rmgr $(L4_INSTALL_DIR)/bin/

-include $(DEPS)
