# Makefile for building
# /mario/VDKBuilderProject/vdkbuilder-2/example/hello/hello


####### Compiler, tools and options
C        =  gcc
CC       =  g++
CFLAGS   =  -g -Wall `vdk-config-2 --cflags`

INCPATH  = -I./
DEFD     = -DNONE
LINK     =  g++
LIBS     =  `vdk-config-2 --libs`

####### Files
PRJ_DIR =	/mario/VDKBuilderProject/vdkbuilder-2/example/hello

HEADERS =	$(PRJ_DIR)/hello.h\
	$(PRJ_DIR)/hello_gui.h\



SOURCES = 	$(PRJ_DIR)/hello.cc\
	$(PRJ_DIR)/hello_gui.cc\



OBJECTS =	$(PRJ_DIR)/hello.o\
	$(PRJ_DIR)/hello_gui.o\



OTHERS_OBJECTS =


TARGET =	hello

PRG_ARGS =	

####### Implicit rules
.SUFFIXES: .cc .c

.cc.o:
	$(CC) -c   $(CFLAGS) $(INCPATH) $(DEFD) -o $@ $<

.c.o:
	$(C)  -c   $(CFLAGS) $(INCPATH) $(DEFD) -o $@ $<

####### Build rules

all: $(TARGET)

$(TARGET): $(OBJECTS)
	$(LINK)  -o $(TARGET) $(OBJECTS) $(OTHERS_OBJECTS) $(LIBS)

####### Running (used by builder)

run: $(TARGET)

	cd /mario/VDKBuilderProject/vdkbuilder-2/example/hello

	./hello $(PRG_ARGS)

	cd /mario/VDKBuilderProject/vdkbuilder-2/example/hello


clean:
	-rm -f $(OBJECTS) $(TARGET)
	-rm -f *~ core

####### Compile


$(PRJ_DIR)/hello.o : $(PRJ_DIR)/hello.cc\
	$(PRJ_DIR)/hello.h\
	$(PRJ_DIR)/hello_gui.h

$(PRJ_DIR)/hello_gui.o : $(PRJ_DIR)/hello_gui.cc\
	$(PRJ_DIR)/hello.h
