makefile to ease development, please dont remove

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18652 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2006-08-27 20:29:08 +00:00
parent 56e00b3afe
commit dbd8be9a85

View File

@ -0,0 +1,59 @@
DEBUG = yes
#DEBUG = no
TARGET = HaikuMediaPlayer
SOURCES = Controller.cpp \
ControllerView.cpp \
DrawingTidbits.cpp \
SoundOutput.cpp \
TransportButton.cpp \
TransportControlGroup.cpp \
MainApp.cpp \
MainWin.cpp \
Playlist.cpp \
SeekSlider.cpp \
VideoNode.cpp \
VideoView.cpp \
VolumeSlider.cpp
CPPFLAGS = -Wall -Wno-multichar -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wsign-compare
LDFLAGS = -lmedia -lbe -ltracker
ARCHIVES =
CC=g++
OBJECTS = $(patsubst %.cpp, obj/%.o, $(SOURCES))
ifeq ($(DEBUG), yes)
CPPFLAGS += -g -O0 -DDEBUG=1
LDFLAGS += -g
else
# Application crashed when O1 or higher
CPPFLAGS += -O0
endif
CPPFLAGS +=
all: $(TARGET)
obj:
@[ -d obj ] || mkdir obj > /dev/null 2>&1
#obj/%.o: %.cpp obj
obj/%.o: %.cpp
$(CC) -c $< $(INCLUDES) $(CPPFLAGS) -o $@
$(TARGET): $(OBJECTS)
$(CC) -o $@ $(LDFLAGS) $(OBJECTS) $(ARCHIVES)
chmod 0777 $@
run: $(TARGET)
./$(TARGET) &
clean:
rm -f ./$(TARGET)
rm -f ./obj/*.o