On Tue, Mar 3, 2009 at 8:06 AM, Viktor Szakáts <[email protected]> wrote:

> -hbcmp will create .c files.
> -hbcc will create object / .res files.

These are the basic rules I use:

%.o: $(ROOT)%.prg
        hbcmp -km -w3 -es0 -q0 -n $?

%.o: $(ROOT)%.c
        hbcc -Wall -c $?

%.hrb: $(ROOT)%.prg
        hbcmp -km -w3 -es0 -q0 -gh -n $?

$(LIB_NAME) : $(OBJFILES) $(OBJCFILES)
        ar crs $(LIB_NAME) $?

$(EXE_NAME) : $(OBJFILES) $(LIBFILES)
        hblnk -o $(EXE_NAME) -shared $(GT_LIST) -gd -pgsql $(OBJFILES)


hbcmp = prg -> obj

hbcmp /gh = prg -> hrb

hbcc = c -> obj

hblnk = obj+lib -> exe

hbmk = prg -> exe

best regards,
Lorenzo
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to