Microsoft make for Harbour library

Microsoft make for Harbour library

Postby Antonio Linares » Wed Feb 01, 2012 9:27 am

go.bat
Code: Select all  Expand view
@if not exist obj md obj
c:\msvc\bin\nmake -ftest.mak


test.mak
Code: Select all  Expand view
#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  Expand view
LIBRARY test

DESCRIPTION 'My lib'

EXPORTS
           dummy      @1
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42097
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Return to Utilities / Utilidades

Who is online

Users browsing this forum: No registered users and 26 guests