include ../../toprules.make

TOPDIR = ../..
TARGET = sampleapp2
SCHEMA = schema_sampleapp.cfg
LIB2 = -lframework2 -L$(TOPDIR)/framework2 

broken:
	@echo "** This Makefile is broken. Look at others and fix it first"

all: $(TARGET)

.PHONY: copyit

$(TARGET): makeit copyit 

makeit: $(objs) $(merc_libs)
	$(CPP) $(CFLAGS) $(LDFLAGS) $(objs) $(LIBS) $(LIB2) -o $(TARGET)

copyit:
	@mkdir -p $(TOPDIR)/build
	cp $(TARGET) $(SCHEMA) $(TOPDIR)/build

include ../../botrules.make
