Made my flags overridable, bumped to 1.04. 1.04
authorGwyn Ciesla <limb@jcomserv.net>
Thu, 18 Mar 2010 19:01:04 +0000 (14:01 -0500)
committerGwyn Ciesla <limb@jcomserv.net>
Thu, 18 Mar 2010 19:01:04 +0000 (14:01 -0500)
Makefile
Makefile~ [new file with mode: 0644]
main.cpp

index 36e2e83..0b6d0c3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+CFLAGS = -g
 CXX = g++ $(CFLAGS)
 INST = /usr/local/bin
 
@@ -5,31 +6,31 @@ INST = /usr/local/bin
 main: main.o check_collision.o age_bullet.o gravitize.o radar_plot.o object_out.o motion.o init.o draw.o powerup.o play_sound_effect.o mishaps.o enemy_shoot.o
        $(CXX) -o curblaster main.o check_collision.o age_bullet.o gravitize.o radar_plot.o object_out.o motion.o init.o draw.o powerup.o play_sound_effect.o mishaps.o enemy_shoot.o -lncurses -lSDL -lSDL_mixer
 main.o: main.cpp
-       $(CXX) -g -c main.cpp
+       $(CXX) -c main.cpp
 check_collision.o: check_collision.cpp check_collision.h
-       $(CXX) -g -c check_collision.cpp        
+       $(CXX) -c check_collision.cpp
 age_bullet.o: age_bullet.cpp age_bullet.h
-       $(CXX) -g -c age_bullet.cpp             
+       $(CXX) -c age_bullet.cpp
 gravitize.o: gravitize.cpp gravitize.h
-       $(CXX) -g -c gravitize.cpp
+       $(CXX) -c gravitize.cpp
 radar_plot.o: radar_plot.cpp radar_plot.h
-       $(CXX) -g -c radar_plot.cpp     
+       $(CXX) -c radar_plot.cpp
 object_out.o: object_out.cpp object_out.h
-       $(CXX) -g -c object_out.cpp             
+       $(CXX) -c object_out.cpp
 motion.o: motion.cpp motion.h
-       $(CXX) -g -c motion.cpp         
+       $(CXX) -c motion.cpp
 init.o: init.cpp init.h
-       $(CXX) -g -c init.cpp           
+       $(CXX) -c init.cpp
 draw.o: draw.cpp draw.h
-       $(CXX) -g -c draw.cpp                   
+       $(CXX) -c draw.cpp
 powerup.o: powerup.cpp powerup.h
-       $(CXX) -g -c powerup.cpp                                        
+       $(CXX) -c powerup.cpp
 play_sound_effect.o: play_sound_effect.cpp play_sound_effect.h
-       $(CXX) -g -c play_sound_effect.cpp                                              
+       $(CXX) -c play_sound_effect.cpp
 mishaps.o: mishaps.cpp mishaps.h
-       $(CXX) -g -c mishaps.cpp                                                
+       $(CXX) -c mishaps.cpp
 enemy_shoot.o: enemy_shoot.cpp enemy_shoot.h
-       $(CXX) -g -c enemy_shoot.cpp                                            
+       $(CXX) -c enemy_shoot.cpp
 install:
        cp curblaster $(INST)
 remove:
diff --git a/Makefile~ b/Makefile~
new file mode 100644 (file)
index 0000000..331b934
--- /dev/null
+++ b/Makefile~
@@ -0,0 +1,50 @@
+CXX = g++ $(CFLAGS)
+INST = /usr/local/bin
+
+
+main: main.o check_collision.o age_bullet.o gravitize.o radar_plot.o object_out.o motion.o init.o draw.o powerup.o play_sound_effect.o mishaps.o enemy_shoot.o
+       $(CXX) -o curblaster main.o check_collision.o age_bullet.o gravitize.o radar_plot.o object_out.o motion.o init.o draw.o powerup.o play_sound_effect.o mishaps.o enemy_shoot.o -lncurses -lSDL -lSDL_mixer
+main.o: main.cpp
+       $(CXX) -c main.cpp
+check_collision.o: check_collision.cpp check_collision.h
+       $(CXX) -c check_collision.cpp
+age_bullet.o: age_bullet.cpp age_bullet.h
+       $(CXX) -c age_bullet.cpp
+gravitize.o: gravitize.cpp gravitize.h
+       $(CXX) -c gravitize.cpp
+radar_plot.o: radar_plot.cpp radar_plot.h
+       $(CXX) -c radar_plot.cpp
+object_out.o: object_out.cpp object_out.h
+       $(CXX) -c object_out.cpp
+motion.o: motion.cpp motion.h
+       $(CXX) -c motion.cpp
+init.o: init.cpp init.h
+       $(CXX) -c init.cpp
+draw.o: draw.cpp draw.h
+       $(CXX) -c draw.cpp
+powerup.o: powerup.cpp powerup.h
+       $(CXX) -c powerup.cpp
+play_sound_effect.o: play_sound_effect.cpp play_sound_effect.h
+       $(CXX) -c play_sound_effect.cpp
+mishaps.o: mishaps.cpp mishaps.h
+       $(CXX) -c mishaps.cpp
+enemy_shoot.o: enemy_shoot.cpp enemy_shoot.h
+       $(CXX) -c enemy_shoot.cpp
+install:
+       cp curblaster $(INST)
+remove:
+       rm $(INST)/curblaster
+uninstall: remove
+
+clean:
+       rm *.o
+       rm curblaster
+
+
+
+
+
+
+
+
+
index b7676fa..b782ccb 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -48,7 +48,7 @@ const int landershotmax = 10;
 const int landermax = 12;
 const int crawlermax = 6;
 const int missilemax = 3;
-const float version = 1.03;
+const float version = 1.04;
 
 int score;
 int lives;