FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Utilities / Utilidades Microsoft make for Harbour library
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Microsoft make for Harbour library
Posted: Wed Feb 01, 2012 09:27 AM
go.bat
Code (fw): Select all Collapse
@if not exist obj md obj
c:\msvc\bin\nmake -ftest.mak


test.mak
Code (fw): Select all Collapse
#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 (fw): Select all Collapse
LIBRARY test

DESCRIPTION 'My lib'

EXPORTS
           dummy      @1
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion