# makefile
# Copyright (c) 2004 central park informatica.  All rights reserved.

INCDIR	= ..\inc
DESTDIR	= .
INCS	= -I$(INCDIR)
LIBS    = user32.lib gdi32.lib kernel32.lib winmm.lib dsound.lib

!IFDEF DEBUG

C_FLAGS	= /Z7
L_FLAGS	= /DEBUG

!ELSE

C_FLAGS = /G5 /O2 /GD
L_FLAGS	=

!ENDIF


goal:   cpb767.gau


cpb767.obj:    $(INCDIR)\gauges.h              \
        cpb767.c
        cl $(C_FLAGS) -c $(INCS) cpb767.c

fssound.obj:    $(INCDIR)\gauges.h              \
        fssound.c
        cl $(C_FLAGS) -c $(INCS) fssound.c

rcfile.res:    rcfile.rc                      \
        resource.h                       
        rc -r $(INCS) rcfile.rc

cpb767.gau:    cpb767.obj                     \
        fssound.obj \
        rcfile.res
        link $(L_FLAGS) /dll /out:$(DESTDIR)\cpb767.gau cpb767.obj fssound.obj rcfile.res $(LIBS)

clean:
	del $(DESTDIR)\*.exp
	del $(DESTDIR)\*.gau
	del $(DESTDIR)\*.lib
	del *.obj
	del *.res

