Page 1 of 1

Microsoft make for Harbour library

Posted: Wed Feb 01, 2012 9:27 am
by Antonio Linares
go.bat

Code: Select all

@if not exist obj md obj
c:\msvc\bin\nmake -ftest.mak
test.mak

Code: Select all

#Microsoft make, (c) FiveTech Software 2012

HBDIR=c:\harbour
VCDIR=c:\msvc
FWDIR=..\

.SUFFIXES : .PRG .OBJ

PRG =       \
.\ONE.PRG   \
.\TWO.PRG   \
.\THREE.PRG   

PRGS=$(PRG:.PRG=.OBJ)
OBJS=$(PRGS:.\=.\obj\)

PROJECT : test.lib

test.lib : $(OBJS) 

.PRG{.\obj\}.OBJ:
   $(HBDIR)\bin\harbour $< /n /Oobj\ /i$(FWDIR)\include;$(HBDIR)\include
   $(VCDIR)\bin\cl -c -TP -W3 -GA -I$(HBDIR)\include -I$(VCDIR)\include -Fo$* $*.c
   if not exist test.lib $(VCDIR)\bin\lib.exe /DEF:test.def /OUT:test.lib  
   $(VCDIR)\bin\lib test.lib /OUT:test.lib $*.obj
test.def

Code: Select all

LIBRARY test

DESCRIPTION 'My lib'

EXPORTS
           dummy      @1