################################################
#           makefile for PACMAN                #
################################################

TARGET = pac046

!ifndef PROD
#-O -G
CFLAGS=-v -ms -1 -Ic:\bc\include;include -Lc:\bc\lib;lib
AFLAGS = /mx /zi
!else
CFLAGS= -ms -1 -O -G -Ic:\bc\include;include -Lc:\bc\lib;lib
AFLAGS = /mx
!endif

OBJS = $(TARGET).obj intro04.obj stars05.obj hiscore.obj
#LIBS = xlib06s.lib extras.lib
LIBS = xlib611s.lib extras.lib

all: $(TARGET).exe tststars.exe tsthisco.exe tstintro.exe
    @echo try "make -DPROD" to compile with no debug informations.
    @echo This is the end of the line my friend.
!ifdef PROD
    @echo prod version
!endif

$(TARGET).exe: $(OBJS)
    bcc $(CFLAGS) $(OBJS) $(LIBS)

tststars.exe: tststars.obj stars05.obj
    bcc $(CFLAGS) tststars.obj stars05.obj  $(LIBS)

tsthisco.exe : tsthisco.obj addintro.obj hiscore.obj stars05.obj
    bcc $(CFLAGS) tsthisco.obj addintro.obj hiscore.obj stars05.obj  $(LIBS)

tstINTRO.exe : tstINTRO.obj intro04.obj
    bcc $(CFLAGS) tstINTRO.obj intro04.obj   $(LIBS)

.c.obj:
    bcc -c $(CFLAGS) $*.c

.asm.obj:
    tasm   $*.asm $(AFLAGS)

