# 'Makefile'

CC=gcc
DIST=/Users/mitsurukido/1dual
MV=mv

#    (2008-03-27)
#  This is the first time when I used [Makefile] in MacOSX Terminal with Xcode.
#  It worked just like in Linux_Unix.    Also I saw definition like above 
#  and Unix command line direct in mixture worked.    According to my 
#  previous experience, the compilation command lines (2nd line) always require
#  to start from [TAB = \t].
#
#    (2008-03-27)
#   To my very surprise, I kept failing to make the brand new entry of small piece of 
#   object  [  copy_f_1_and_3_and_6_7_8_9.o  ] by this Makefile.   It was just ignored.
#   Currently, just for this Object, I make it manually in the command line at Terminal.
#
#     $ gcc  -c  copy_f_1_and_3_and_6_7_8_9.c
#
#   Once the object [  copy_f_1_and_3_and_6_7_8_9.o  ] is made out of this Makefile, 
#   then this Makefile runs all the way to the end without an error.
#   The original error during [make install] was [can't fine the file,  copy_f_1_and_3_and_6_7_8_9.o ].
#   I have no clue how to fix this bug.
#




all : 1Bat    2Er      3Diff


# *****  At first, each pieces of Objects.

spacedwd.o : spacedwd.c
	$(CC) -c spacedwd.c

#####  Erasing  1
#######################################
copy_a_2_3_4_5_6_7_8_9.o : copy_a_2_3_4_5_6_7_8_9.c
	$(CC) -c copy_a_2_3_4_5_6_7_8_9.c


#####  Erasing  4
#######################################
copy_b_1_2_3_and_5_6_7_8_9.o : copy_b_1_2_3_and_5_6_7_8_9.c
	$(CC) -c copy_b_1_2_3_and_5_6_7_8_9.c


#####  Erasing  3+4
#######################################
copy_c_1_2_and_5_6_7_8_9.o : copy_c_1_2_and_5_6_7_8_9.c
	$(CC) -c copy_c_1_2_and_5_6_7_8_9.c


#####  Erasing  1,   3+4
#####  Copying     2,    5+6+7+8+9
#######################################
copy_d_2_and_5_6_7_8_9.o : copy_d_2_and_5_6_7_8_9.c
	$(CC) -c copy_d_2_and_5_6_7_8_9.c


#####  Erasing  1,         6+7+8
#####  Copying    2+3+4+5,       9
#######################################
copy_e_2_3_4_5_and_9.o : copy_e_2_3_4_5_and_9.c
	$(CC) -c copy_e_2_3_4_5_and_9.c



#####  Erasing       2,     4+5
#####  Copying  1,     3,        6+7+8+9
#######################################
copy_f_1_and_3_and_6_7_8_9.o : copy_f_1_and_3_and_6_7_8_9.c
	$(CC) -c copy_f_1_and_3_and_6_7_8_9.c




1Bat    : gccPj001.c  spacedwd.o
	gcc -o 1Bat       gccPj001.c  spacedwd.o


2Er   : gccPj002.c spacedwd.o copy_a_2_3_4_5_6_7_8_9.o  copy_b_1_2_3_and_5_6_7_8_9.o  copy_c_1_2_and_5_6_7_8_9.o  copy_d_2_and_5_6_7_8_9.o  copy_e_2_3_4_5_and_9.o
	$(CC) -o 2Er gccPj002.c spacedwd.o copy_a_2_3_4_5_6_7_8_9.o  copy_b_1_2_3_and_5_6_7_8_9.o  copy_c_1_2_and_5_6_7_8_9.o  copy_d_2_and_5_6_7_8_9.o  copy_e_2_3_4_5_and_9.o  copy_f_1_and_3_and_6_7_8_9.o


3Diff  : gccPj003.c spacedwd.o
	gcc -o 3Diff   gccPj003.c spacedwd.o


#all : 1Bat 2Er 3Diff

install : 1Bat 2Er 3Diff
	$ mv  1Bat  /Users/mitsurukido/1dual
	$ mv  2Er   /Users/mitsurukido/1dual
	$ mv  3Diff /Users/mitsurukido/1dual
	rm *.o