Microsoft make for Harbour library

Post Reply
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Microsoft make for Harbour library

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply