#  'Makefile'

#CC=bcc -N -DMSDOS
CC=cc
DIST=/home/mkido/DualWay
MV=mv

all : 1Bat 2Er 3Diff

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

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

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

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

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

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

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

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

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

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



#  *****  Now, Programs.

1Bat  : gccPj001_6.c spacedwd.o
$(CC) -o 1Bat gccPj001_6.c spacedwd.o

2Er   : gccPj002_4.c spacedwd.o fild_1up.o fild_1dw.o fild_4up.o fild_4dw.o fild_7up.o fild_7dw.o fild_8up.o fild_8dw.o
$(CC) -o 2Er gccPj002_4.c spacedwd.o fild_1up.o fild_1dw.o fild_4up.o fild_4dw.o fild_7up.o fild_7dw.o fild_8up.o fild_8dw.o

3Diff  : gccPj003_2.c spacedwd.o
$(CC) -o 3Diff gccPj003_2.c spacedwd.o

#all : 1Bat 2Er 3Diff

install : 1Bat 2Er 3Diff
$(MV) 1Bat  $(DIST)
$(MV) 2Er   $(DIST)
$(MV) 3Diff $(DIST)
rm *.o