#-----------------------------------------------------------------------------
# Digital Mars C++
#-----------------------------------------------------------------------------

CC  = dmc -cpp -Ae -w -c
PLAIN_C = dmc -Ae -w -c
LD  = dmc -cpp


AR  = lib  /n /noi /p:512
ARC = -+
AR0 = echo


 
ASM = nasmw -f win32 
 

INCL = $(LROOT)\incl

LIB  = ..\..\$(L).lib

o   = .obj

.asm.obj:
        $(ASM) -o $*.obj $*.asm
	$(AR) ..\$(LIB) $(ARC) $*.obj; > NUL

.c.obj:
        $(CC) -I$(INCL) -DLEDA_INSTALL $(DFLAGS) $*.c
	$(AR) $(LIB) $(ARC) $*.obj; > NUL

all: $(LIB)

include Make.lst

$(LIB): $(OBJECTS)
        @echo.

clean: $(OBJECTS)
	del $*.obj

