Skip to content

Commit

Permalink
Started porting to C++
Browse files Browse the repository at this point in the history
  • Loading branch information
wedesoft committed Jan 12, 2012
1 parent d6f0b3c commit 5b8593a
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
SUFFIXES = .rb .ui .cc .hh

CFLAGS = -I/usr/include/qt4
LDADD = -lQtGui -lQtCore

RUBY = ruby
RBUIC = rbuic4
RBRCC = rbrcc

all: ui_gamewindow.rb ui_content.rb qrc_battleship.rb
OBJECTS = battleship.o

default: battleship

all: default ruby

battleship: $(OBJECTS)
$(CXX) -o $@ $(OBJECTS) $(LDADD)

ruby: ui_gamewindow.rb ui_content.rb qrc_battleship.rb

test:
$(RUBY) tc_battleship.rb

clean:
rm -f ui_*.rb *~
rm -f ui_*.rb *.o *~

.cc.o:
$(CXX) -c -o $@ $(CFLAGS) $<

ui_%.rb: %.ui
$(RBUIC) $< > $@
Expand Down

0 comments on commit 5b8593a

Please sign in to comment.