程式語言 - C++ Builder 6 - Visual Component Library (VCL) - main.mak
TARGET = main
OUTDIR = Debug
CXX = bcc32
LD = ilink32
INC = "$(BCB)\include";"$(BCB)\include\vcl"
CXXFLAGS = -c -I$(INC) -n$(OUTDIR)
LDFLAGS = -L"$(BCB)\lib" -L"$(BCB)\lib\obj" -L"$(BCB)\lib\release"
LIBS = import32.lib cp32mti.lib
OBJS = c0w32.obj vcl.bpi rtl.bpi memmgr.lib sysinit.obj $(OUTDIR)\$(TARGET).obj
all:
rmdir /s /q $(OUTDIR)
mkdir $(OUTDIR)
$(CXX) $(CXXFLAGS) $(TARGET).cpp
$(LD) $(LDFLAGS) $(OBJS),$(OUTDIR)\$(TARGET).exe,,$(LIBS),,
$(OUTDIR)\$(TARGET).exe