first, basic transition to C++
This commit is contained in:
16
Makefile
16
Makefile
@ -6,7 +6,7 @@ GTK_CFLAGS=$(shell pkg-config --cflags $(GTK_PACKAGES))
|
||||
GTK_LIBS=$(shell pkg-config --libs $(GTK_PACKAGES))
|
||||
|
||||
# PROFILING_CFLAGS=-pg
|
||||
CFLAGS=-Wall -g -O2 $(PROFILING_CFLAGS) $(GTK_CFLAGS)
|
||||
CXXFLAGS=-Wall -g -O2 $(PROFILING_CFLAGS) $(GTK_CFLAGS)
|
||||
|
||||
LIBS=$(GTK_LIBS) -lm
|
||||
|
||||
@ -14,13 +14,13 @@ PROGS=balls
|
||||
OBJS=balls.o c_index.o game.o gravity.o spaceship.o main.o
|
||||
|
||||
# dependencies (gcc -MM *.c)
|
||||
balls.o: balls.c game.h balls.h gravity.h
|
||||
c_index.o: c_index.c balls.h game.h c_index.h
|
||||
game.o: game.c game.h
|
||||
gravity.o: gravity.c gravity.h game.h
|
||||
main.o: main.c game.h balls.h c_index.h gravity.h spaceship.h
|
||||
spaceship.o: spaceship.c balls.h game.h
|
||||
stats.o: stats.c
|
||||
balls.o: balls.cc game.h balls.h gravity.h
|
||||
c_index.o: c_index.cc balls.h game.h c_index.h
|
||||
game.o: game.cc game.h
|
||||
gravity.o: gravity.cc gravity.h game.h
|
||||
main.o: main.cc game.h balls.h c_index.h gravity.h spaceship.h
|
||||
spaceship.o: spaceship.cc balls.h game.h
|
||||
stats.o: stats.cc
|
||||
|
||||
.PHONY: run
|
||||
run: balls
|
||||
|
Reference in New Issue
Block a user