Sunday, March 13, 2011

How to create libminigui.a with MingW32 by Walter Formigoni

As requested by me to Walter for a step-by-step approach on the above :-

1-download and install Mingw32. if you use hmg from Roberto, Mingw32 is

already instaled in c:\hmg\mingw

2-compile harbour with Mingw32. if you use hmg from Roberto, Mingw32 is

already instaled in c:\hmg\harbour

some libs of contrib are not created. verify if these libs are

essencial and compile them too.

3-in c:\minigui\source create makefile.gcc

4-create folder c:\minigui\obj (if not exist)


//begin makefile.gcc

HRB_DIR = c:/hmg/harbour

INC_DIR = c:/minigui/include

OBJ_DIR = c:/minigui/obj

LIB_DIR = c:/minigui/lib

SRC_DIR = c:/minigui/source

CFLAGS = -Wall -mno-cygwin -O3


all: \

$(LIB_DIR)/libminigui.a \


$(LIB_DIR)/libminigui.a : \

$(OBJ_DIR)/h_media.o \

$(OBJ_DIR)/h_browse.o \

$(OBJ_DIR)/h_DIALOG.o \

$(OBJ_DIR)/h_error.o \

$(OBJ_DIR)/h_ipaddress.o \

$(OBJ_DIR)/h_monthcal.o \

$(OBJ_DIR)/h_help.o \

$(OBJ_DIR)/h_status.o \

$(OBJ_DIR)/h_tree.o \

$(OBJ_DIR)/h_toolbar.o \

$(OBJ_DIR)/errorsys.o \

$(OBJ_DIR)/h_init.o \

$(OBJ_DIR)/h_winapimisc.o \

$(OBJ_DIR)/h_slider.o \

$(OBJ_DIR)/h_button.o \

$(OBJ_DIR)/h_checkbox.o \

$(OBJ_DIR)/h_combo.o \

$(OBJ_DIR)/h_controlmisc.o \

$(OBJ_DIR)/h_datepicker.o \

$(OBJ_DIR)/h_editbox.o \

$(OBJ_DIR)/h_grid.o \

$(OBJ_DIR)/h_windows.o \

$(OBJ_DIR)/h_image.o \

$(OBJ_DIR)/h_label.o \

$(OBJ_DIR)/h_listbox.o \

$(OBJ_DIR)/h_menu.o \

$(OBJ_DIR)/h_msgbox.o \

$(OBJ_DIR)/h_frame.o \

$(OBJ_DIR)/h_progressbar.o \

$(OBJ_DIR)/h_radio.o \

$(OBJ_DIR)/h_spinner.o \

$(OBJ_DIR)/h_tab.o \

$(OBJ_DIR)/h_textbox.o \

$(OBJ_DIR)/h_timer.o \

$(OBJ_DIR)/h_font.o \

$(OBJ_DIR)/h_hotkey.o \

$(OBJ_DIR)/h_richeditbox.o \

$(OBJ_DIR)/h_BTNTEXTBOX.o \

$(OBJ_DIR)/h_CURSOR.o \

$(OBJ_DIR)/h_DRAW.o \

$(OBJ_DIR)/h_EDIT_EX.o \

$(OBJ_DIR)/h_EVENTS.o \

$(OBJ_DIR)/h_FOLDER.o \

$(OBJ_DIR)/h_GETBOX.o \

$(OBJ_DIR)/h_GRAPH.o \

$(OBJ_DIR)/h_GRADIENT.o \

$(OBJ_DIR)/h_HOTKEYBOX.o \

$(OBJ_DIR)/h_HYPERLINK.o \

$(OBJ_DIR)/h_IMAGELIST.o \

$(OBJ_DIR)/h_REPORT.o \

$(OBJ_DIR)/h_REGISTRY.o \

$(OBJ_DIR)/h_SCRSAVER.o \

$(OBJ_DIR)/h_SOCKET.o \

$(OBJ_DIR)/h_WBRUSH.o \

$(OBJ_DIR)/h_WINDOWSMDI.o \

$(OBJ_DIR)/h_WINPROP.o \

$(OBJ_DIR)/h_dialogs.o \

$(OBJ_DIR)/h_pager.o \

$(OBJ_DIR)/c_media.o \

$(OBJ_DIR)/c_DIALOG.o \

$(OBJ_DIR)/c_ipaddress.o \

$(OBJ_DIR)/c_monthcal.o \

$(OBJ_DIR)/c_help.o \

$(OBJ_DIR)/c_status.o \

$(OBJ_DIR)/c_tree.o \

$(OBJ_DIR)/c_toolbar.o \

$(OBJ_DIR)/c_button.o \

$(OBJ_DIR)/c_checkbox.o \

$(OBJ_DIR)/c_combo.o \

$(OBJ_DIR)/c_controlmisc.o \

$(OBJ_DIR)/c_datepicker.o \

$(OBJ_DIR)/c_resource.o \

$(OBJ_DIR)/c_font.o \

$(OBJ_DIR)/c_richeditbox.o \

$(OBJ_DIR)/c_editbox.o \

$(OBJ_DIR)/c_dialogs.o \

$(OBJ_DIR)/c_grid.o \

$(OBJ_DIR)/c_windows.o \

$(OBJ_DIR)/c_image.o \

$(OBJ_DIR)/c_label.o \

$(OBJ_DIR)/c_listbox.o \

$(OBJ_DIR)/c_menu.o \

$(OBJ_DIR)/c_msgbox.o \

$(OBJ_DIR)/c_frame.o \

$(OBJ_DIR)/c_progressbar.o \

$(OBJ_DIR)/c_radio.o \

$(OBJ_DIR)/c_slider.o \

$(OBJ_DIR)/c_spinner.o \

$(OBJ_DIR)/c_tab.o \

$(OBJ_DIR)/c_textbox.o \

$(OBJ_DIR)/c_timer.o \

$(OBJ_DIR)/c_winapimisc.o \

$(OBJ_DIR)/c_hotkey.o \

$(OBJ_DIR)/c_browse.o \

$(OBJ_DIR)/c_BITMAP.o \

$(OBJ_DIR)/c_BTNTEXTBOX.o \

$(OBJ_DIR)/c_CURSOR.o \

$(OBJ_DIR)/c_FOLDER.o \

$(OBJ_DIR)/c_GETBOX.o \

$(OBJ_DIR)/c_GRAPH.o \

$(OBJ_DIR)/c_HOTKEYBOX.o \

$(OBJ_DIR)/c_IMAGELIST.o \

$(OBJ_DIR)/c_REGISTRY.o \

$(OBJ_DIR)/c_HYPERLINK.o \

$(OBJ_DIR)/c_WINDOWSMDI.o \

$(OBJ_DIR)/c_WINPROP.o \

$(OBJ_DIR)/c_WINXP.o \

$(OBJ_DIR)/c_pager.o \


ar rc $@ $^


$(OBJ_DIR)/c_media.o : $(SRC_DIR)/c_media.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_DIALOG.o : $(SRC_DIR)/c_DIALOG.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_ipaddress.o : $(SRC_DIR)/c_ipaddress.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_monthcal.o : $(SRC_DIR)/c_monthcal.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_help.o : $(SRC_DIR)/c_help.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_status.o : $(SRC_DIR)/c_status.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_tree.o : $(SRC_DIR)/c_tree.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_toolbar.o : $(SRC_DIR)/c_toolbar.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_button.o : $(SRC_DIR)/c_button.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_checkbox.o : $(SRC_DIR)/c_checkbox.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_combo.o : $(SRC_DIR)/c_combo.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_controlmisc.o : $(SRC_DIR)/c_controlmisc.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_datepicker.o : $(SRC_DIR)/c_datepicker.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_resource.o : $(SRC_DIR)/c_resource.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_font.o : $(SRC_DIR)/c_font.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_richeditbox.o : $(SRC_DIR)/c_richeditbox.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_editbox.o : $(SRC_DIR)/c_editbox.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_dialogs.o : $(SRC_DIR)/c_dialogs.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_grid.o : $(SRC_DIR)/c_grid.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_windows.o : $(SRC_DIR)/c_windows.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_image.o : $(SRC_DIR)/c_image.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_label.o : $(SRC_DIR)/c_label.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_listbox.o : $(SRC_DIR)/c_listbox.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_menu.o : $(SRC_DIR)/c_menu.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_msgbox.o : $(SRC_DIR)/c_msgbox.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_frame.o : $(SRC_DIR)/c_frame.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_progressbar.o : $(SRC_DIR)/c_progressbar.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_radio.o : $(SRC_DIR)/c_radio.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_slider.o : $(SRC_DIR)/c_slider.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_spinner.o : $(SRC_DIR)/c_spinner.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_tab.o : $(SRC_DIR)/c_tab.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_textbox.o : $(SRC_DIR)/c_textbox.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_timer.o : $(SRC_DIR)/c_timer.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_winapimisc.o : $(SRC_DIR)/c_winapimisc.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_hotkey.o : $(SRC_DIR)/c_hotkey.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_browse.o : $(SRC_DIR)/c_browse.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_BITMAP.o : $(SRC_DIR)/c_BITMAP.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_BTNTEXTBOX.o : $(SRC_DIR)/c_BTNTEXTBOX.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_CURSOR.o : $(SRC_DIR)/c_CURSOR.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_FOLDER.o : $(SRC_DIR)/c_FOLDER.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_GETBOX.o : $(SRC_DIR)/c_GETBOX.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_GRAPH.o : $(SRC_DIR)/c_GRAPH.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_HOTKEYBOX.o : $(SRC_DIR)/c_HOTKEYBOX.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_IMAGELIST.o : $(SRC_DIR)/c_IMAGELIST.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_REGISTRY.o : $(SRC_DIR)/c_REGISTRY.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_HYPERLINK.o : $(SRC_DIR)/c_HYPERLINK.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_WINDOWSMDI.o : $(SRC_DIR)/c_WINDOWSMDI.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_WINPROP.o : $(SRC_DIR)/c_WINPROP.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_WINXP.o : $(SRC_DIR)/c_WINXP.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^

$(OBJ_DIR)/c_pager.o : $(SRC_DIR)/c_pager.c

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^


$(OBJ_DIR)/h_media.o : $(OBJ_DIR)/h_media.c

$(OBJ_DIR)/h_DIALOG.o : $(OBJ_DIR)/h_DIALOG.c

$(OBJ_DIR)/h_browse.o : $(OBJ_DIR)/h_browse.c

$(OBJ_DIR)/h_error.o : $(OBJ_DIR)/h_error.c

$(OBJ_DIR)/h_ipaddress.o : $(OBJ_DIR)/h_ipaddress.c

$(OBJ_DIR)/h_monthcal.o : $(OBJ_DIR)/h_monthcal.c

$(OBJ_DIR)/h_help.o : $(OBJ_DIR)/h_help.c

$(OBJ_DIR)/h_status.o : $(OBJ_DIR)/h_status.c

$(OBJ_DIR)/h_tree.o : $(OBJ_DIR)/h_tree.c

$(OBJ_DIR)/h_toolbar.o : $(OBJ_DIR)/h_toolbar.c

$(OBJ_DIR)/errorsys.o : $(OBJ_DIR)/errorsys.c

$(OBJ_DIR)/h_init.o : $(OBJ_DIR)/h_init.c

$(OBJ_DIR)/h_winapimisc.o : $(OBJ_DIR)/h_winapimisc.c

$(OBJ_DIR)/h_slider.o : $(OBJ_DIR)/h_slider.c

$(OBJ_DIR)/h_button.o : $(OBJ_DIR)/h_button.c

$(OBJ_DIR)/h_checkbox.o : $(OBJ_DIR)/h_checkbox.c

$(OBJ_DIR)/h_combo.o : $(OBJ_DIR)/h_combo.c

$(OBJ_DIR)/h_controlmisc.o : $(OBJ_DIR)/h_controlmisc.c

$(OBJ_DIR)/h_datepicker.o : $(OBJ_DIR)/h_datepicker.c

$(OBJ_DIR)/h_editbox.o : $(OBJ_DIR)/h_editbox.c

$(OBJ_DIR)/h_dialogs.o : $(OBJ_DIR)/h_dialogs.c

$(OBJ_DIR)/h_pager.o : $(OBJ_DIR)/h_pager.c

$(OBJ_DIR)/h_grid.o : $(OBJ_DIR)/h_grid.c

$(OBJ_DIR)/h_windows.o : $(OBJ_DIR)/h_windows.c

$(OBJ_DIR)/h_image.o : $(OBJ_DIR)/h_image.c

$(OBJ_DIR)/h_label.o : $(OBJ_DIR)/h_label.c

$(OBJ_DIR)/h_listbox.o : $(OBJ_DIR)/h_listbox.c

$(OBJ_DIR)/h_menu.o : $(OBJ_DIR)/h_menu.c

$(OBJ_DIR)/h_msgbox.o : $(OBJ_DIR)/h_msgbox.c

$(OBJ_DIR)/h_frame.o : $(OBJ_DIR)/h_frame.c

$(OBJ_DIR)/h_progressbar.o : $(OBJ_DIR)/h_progressbar.c

$(OBJ_DIR)/h_radio.o : $(OBJ_DIR)/h_radio.c

$(OBJ_DIR)/h_spinner.o : $(OBJ_DIR)/h_spinner.c

$(OBJ_DIR)/h_tab.o : $(OBJ_DIR)/h_tab.c

$(OBJ_DIR)/h_textbox.o : $(OBJ_DIR)/h_textbox.c

$(OBJ_DIR)/h_timer.o : $(OBJ_DIR)/h_timer.c

$(OBJ_DIR)/h_font.o : $(OBJ_DIR)/h_font.c

$(OBJ_DIR)/h_hotkey.o : $(OBJ_DIR)/h_hotkey.c

$(OBJ_DIR)/h_richeditbox.o : $(OBJ_DIR)/h_richeditbox.c

$(OBJ_DIR)/h_BTNTEXTBOX.o : $(OBJ_DIR)/h_BTNTEXTBOX.c

$(OBJ_DIR)/h_CURSOR.o : $(OBJ_DIR)/h_CURSOR.c

$(OBJ_DIR)/h_DRAW.o : $(OBJ_DIR)/h_DRAW.c

$(OBJ_DIR)/h_EDIT.o : $(OBJ_DIR)/h_EDIT.c

$(OBJ_DIR)/h_EDIT_EX.o : $(OBJ_DIR)/h_EDIT_EX.c

$(OBJ_DIR)/h_EVENTS.o : $(OBJ_DIR)/h_EVENTS.c

$(OBJ_DIR)/h_FOLDER.o : $(OBJ_DIR)/h_FOLDER.c

$(OBJ_DIR)/h_GETBOX.o : $(OBJ_DIR)/h_GETBOX.c

$(OBJ_DIR)/h_GRAPH.o : $(OBJ_DIR)/h_GRAPH.c

$(OBJ_DIR)/h_GRADIENT.o : $(OBJ_DIR)/h_GRADIENT.c

$(OBJ_DIR)/h_HOTKEYBOX.o : $(OBJ_DIR)/h_HOTKEYBOX.c

$(OBJ_DIR)/h_HYPERLINK.o : $(OBJ_DIR)/h_HYPERLINK.c

$(OBJ_DIR)/h_IMAGELIST.o : $(OBJ_DIR)/h_IMAGELIST.c

$(OBJ_DIR)/h_REGISTRY.o : $(OBJ_DIR)/h_REGISTRY.c

$(OBJ_DIR)/h_REPORT.o : $(OBJ_DIR)/h_REPORT.c

$(OBJ_DIR)/h_SCRSAVER.o : $(OBJ_DIR)/h_SCRSAVER.c

$(OBJ_DIR)/h_SOCKET.o : $(OBJ_DIR)/h_SOCKET.c

$(OBJ_DIR)/h_WBRUSH.o : $(OBJ_DIR)/h_WBRUSH.c

$(OBJ_DIR)/h_WINDOWSMDI.o : $(OBJ_DIR)/h_WINDOWSMDI.c

$(OBJ_DIR)/h_WINPROP.o : $(OBJ_DIR)/h_WINPROP.c


$(OBJ_DIR)/h_media.c : $(SRC_DIR)/h_media.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_DIALOG.c : $(SRC_DIR)/h_DIALOG.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_browse.c : $(SRC_DIR)/h_browse.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_error.c : $(SRC_DIR)/h_error.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_ipaddress.c : $(SRC_DIR)/h_ipaddress.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_monthcal.c : $(SRC_DIR)/h_monthcal.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_help.c : $(SRC_DIR)/h_help.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_status.c : $(SRC_DIR)/h_status.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_tree.c : $(SRC_DIR)/h_tree.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_toolbar.c : $(SRC_DIR)/h_toolbar.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/errorsys.c : $(SRC_DIR)/errorsys.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_init.c : $(SRC_DIR)/h_init.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_winapimisc.c : $(SRC_DIR)/h_winapimisc.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_slider.c : $(SRC_DIR)/h_slider.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_button.c : $(SRC_DIR)/h_button.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_checkbox.c : $(SRC_DIR)/h_checkbox.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_combo.c : $(SRC_DIR)/h_combo.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_controlmisc.c : $(SRC_DIR)/h_controlmisc.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_datepicker.c : $(SRC_DIR)/h_datepicker.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_editbox.c : $(SRC_DIR)/h_editbox.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_dialogs.c : $(SRC_DIR)/h_dialogs.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_grid.c : $(SRC_DIR)/h_grid.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_windows.c : $(SRC_DIR)/h_windows.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_image.c : $(SRC_DIR)/h_image.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_label.c : $(SRC_DIR)/h_label.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_listbox.c : $(SRC_DIR)/h_listbox.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_menu.c : $(SRC_DIR)/h_menu.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_msgbox.c : $(SRC_DIR)/h_msgbox.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_frame.c : $(SRC_DIR)/h_frame.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_progressbar.c : $(SRC_DIR)/h_progressbar.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_radio.c : $(SRC_DIR)/h_radio.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_spinner.c : $(SRC_DIR)/h_spinner.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_tab.c : $(SRC_DIR)/h_tab.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_textbox.c : $(SRC_DIR)/h_textbox.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_timer.c : $(SRC_DIR)/h_timer.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_font.c : $(SRC_DIR)/h_font.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_hotkey.c : $(SRC_DIR)/h_hotkey.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_richeditbox.c : $(SRC_DIR)/h_richeditbox.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_BTNTEXTBOX.c : $(SRC_DIR)/h_BTNTEXTBOX.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_CURSOR.c : $(SRC_DIR)/h_CURSOR.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_DRAW.c : $(SRC_DIR)/h_DRAW.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_EDIT.c : $(SRC_DIR)/h_EDIT.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_EDIT_EX.c : $(SRC_DIR)/h_EDIT_EX.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_EVENTS.c : $(SRC_DIR)/h_EVENTS.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_FOLDER.c : $(SRC_DIR)/h_FOLDER.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_GETBOX.c : $(SRC_DIR)/h_GETBOX.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_GRAPH.c : $(SRC_DIR)/h_GRAPH.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_GRADIENT.c : $(SRC_DIR)/h_GRADIENT.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_HOTKEYBOX.c : $(SRC_DIR)/h_HOTKEYBOX.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_HYPERLINK.c : $(SRC_DIR)/h_HYPERLINK.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_IMAGELIST.c : $(SRC_DIR)/h_IMAGELIST.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_REGISTRY.c : $(SRC_DIR)/h_REGISTRY.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_REPORT.c : $(SRC_DIR)/h_REPORT.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_SCRSAVER.c : $(SRC_DIR)/h_SCRSAVER.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_SOCKET.c : $(SRC_DIR)/h_SOCKET.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_WBRUSH.c : $(SRC_DIR)/h_WBRUSH.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_WINDOWSMDI.c : $(SRC_DIR)/h_WINDOWSMDI.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_WINPROP.c : $(SRC_DIR)/h_WINPROP.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^

$(OBJ_DIR)/h_pager.c : $(SRC_DIR)/h_pager.prg

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^


.prg.c:

$(HRB_DIR)/bin\harbour.exe $^ -n -I$(HRB_DIR)/include

-i$(INC_DIR) -d__WINDOWS__ -o$@ $^


.c.o:

gcc $(CFLAGS) -c -I$(INC_DIR) -I$(HRB_DIR)/include -o $@ $^


//end makefile.gcc


5-create makelib.bat


//begin makelib.bat

@echo off


set PATH=c:\hmg\mingw\bin


if "%1" == "clean" goto CLEAN

if "%1" == "CLEAN" goto CLEAN


:BUILD


mingw32-make.exe -f makefile.gcc

if errorlevel 1 goto BUILD_ERR


:BUILD_OK


goto EXIT


:BUILD_ERR


goto EXIT


:CLEAN

del lib\*.a

del lib\*.bak

del obj\*.o

del obj\*.c


goto EXIT


:EXIT

//end makelib.bat


Kind regards

Walter Formigoni

No comments:

Post a Comment

Welcome to Clipper... Clipper... Clipper


In 1997, then using Delphi 3, I had already created 32-bits Windows applications for HRIS, ERP and CRM. In 2007, using Ruby on Rails, an AJAX powered CRM site running on Apache & MySQL was created and I am now using Visual Studio .Net 2008 to create web-based projects and Delphi 7 for Win32 applications using SQL2005 & DBFCDX.

So, why then am I reviving the Original Clipper... Clipper... Clipper via a Blog as CA-Clipper is a programming language for the DOS world ? Believe it or not, there are still some clients using my mission-critical CA-Clipper applications for DOS installed in the late 80's and up to the mid 90's. This is testimony to CA-Clipper's robustness as a language :-)

With the widespread introduction of Windows 7 64-bits as the standard O/S for new Windows based PCs & Notebooks, CA-Clipper EXE simply will not work and it has become imperative for Clipper programmers to migrate immediately to Harbour to build 32/64 bits EXEs

Since 28th January 2009, this blog has been read by 134,389 (10/3/11 - 39,277) unique visitors (of which 45,151 (10/3/11 - 13,929) are returning visitors) from 103 countries and 1,574 cities & towns in Europe (37; 764 cities), North America (3; 373 cities) , Central America & Caribeans (6; 13 cities), South America(10; 226 cities), Africa & Middle-East (12; 44 cities) , Asia-Pacific (21; 175 cities). So, obviously Clipper is Alive & Well : -)


TIA & Enjoy ! (10th October 2012, 11:05; 13th November 2015)


Original Welcome Page for Clipper... Clipper... Clipper

This is the original Welcome Page for Clipper... Clipper... Clipper, which I am republishing for historical and sentimental reasons. The only changes that I have made was to fix all the broken links. BTW, the counter from counter.digits.com is still working :-)

Welcome to Chee Chong Hwa's Malaysian WWW web site which is dedicated to Clipperheads throughout the world.

This site started out as a teeny-weeny section of Who the heck is Chee Chong Hwa ? and has graduated into a full blown web site of more than 140 pages (actually hundreds of A4 size pages) ! This is due to its growing popularity and tremendous encouragements from visiting Clipperheads from 100 countries worldwide, from North America, Central America, Caribbean, South America, Europe, Middle-East, Africa and Asia-Pacific. Thanx Clipperheads, you all made this happen !


What is Clipper ?

You may ask, what is this Clipper stuff ? Could Clipper be something to do with sailing as it is the name of a very fast sailing American ship in the 19th century ?

Well, Clipper or to be precise, CA-Clipper is the premier PC-Software development tool for DOS. It was first developed by Nantucket Corporation initially as a compiler for dBase3+ programs. Since then, CA-Clipper has evolved away from its x-base roots with the introduction of lexical scoping & pre-defined objects like TBrowse. As at today, the most stable version ofClipper is 5.2e while the latest version, 5.3a was introduced on 21 May 1996.

As at 11th November, 1996, an unofficial 5.3a fixes file was made available by Jo French. See the About CA-Clipper 5.3a section for more details. BTW, Jo French uploaded the revised 5.3a fixes file on 20th November, 1996.

Latest News

The latest news is that CA has finally released the long-awaited 5.3b patch on 21 May, 1997.

For 5.3b users, you must a take a look at Jo French's comments on unfixed bugs in 5.3b.

BTW, have you used Click ? If you're a serious Clipperprogrammer and need an excellent code formatter, Click is a natural choice. How to get it ? Simple, access Phil Barnett's site via my Cool Clipper Sites.

32-bits Clipper for Windows ?

Have you tried Xbase ++ ? Well, I have and compared to Delphi (my current Windows programming tool of choice), I'm still sticking to Delphi.

Anyway, you should visit the Alaska Home Page. Give it a chance and then draw your own conclusions !.

The Harbour Project

Is this the future of Xbase ? Take a look at at the Harbour Project

You are Visitor # ...

According to counter.digits.com, you are visitor since 3 June 1996.

If you like or dislike what you see on this website, please drop me a line by clicking the email button at the bottom of this page or better still, by filling out the form in my guest book. If you are not sure what to write,click here to take a look at what other Clipperheads have to say.