-# we must cut the command line to fit in the MS/DOS 128 byte limit:
-$(LIBTARGET): $(OBJ1) $(OBJ2) $(OBJ3)
- del $(LIBTARGET)
- $(LIB) $(LIBTARGET) +$(OBJP1)
- $(LIB) $(LIBTARGET) +$(OBJP2)
- $(LIB) $(LIBTARGET) +$(OBJP3)
+$(LIBTARGET) : $(OBJECTS)
+ %create tmp.lbc
+ @for %i in ( $(OBJ1) $(OBJ2) $(OBJ3) ) do @%append tmp.lbc +%i
+ wlib /b /c /n /p=512 $^@ @tmp.lbc
+