- 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