Commit 2c81ce69 authored by Zander's avatar Zander 💥 Committed by Eduard

Remove autotools

It's served us well for many years but it's time to move on
parent 1f930b94
Makefile
Makefile.in
.deps
.libs
*~
*.o
*.lo
*.obj
*.opt
*.out
*.pdb
*.dll
*.exp
*.lib
*.exe
*.res
*.diff
aclocal.m4
autom4te.cache
config.guess
config.h
config.h.in
config.log
config.status
config.sub
configure
core-translation-report
depcomp
dia.desktop
dia.desktop.in
dia.keys
install-sh
intltool-extract.in
intltool-merge.in
intltool-update.in
libtool
ltmain.sh
missing
mkinstalldirs
stamp-h1
doc/*/graphics/*.eps
doc/*/.epsfigures
doc/*/dia_html
/build/win32/Thumbs.db
# We only need to ignore meson build directories
build/
build-release/
.vscode
## Process this file with automake to produce Makefile.in
SUBDIRS = lib objects plug-ins shapes app bindings samples po sheets data doc tests installer
gnomedatadir = $(datadir)
#desktop_in_in_files = dia.desktop.in.in
#desktop_files = $(desktop_in_files:.desktop.in.in=.desktop)
applicationsdir = $(datadir)/applications
#applications_DATA = $(desktop_files)
pkgdata_DATA =
CLEANFILES = core-translation-report dia.keys dia.desktop
#DISTCLEANFILES = $(desktop_files)
#--- Adapted from http://svn.xfce.org/svn/xfce/libexo/trunk/exo-helper/helpers/Makefile.am
desktopdir = $(datadir)/applications
desktop_in_files = dia.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
DISTCLEANFILES = \
$(desktop_DATA) $(desktop_in_files)
#---
dia.desktop.in: $(top_srcdir)/dia.desktop.in.in $(wildcard $(top_srcdir)/po/*.po)
$(INTLTOOL_MERGE) $(top_srcdir)/po $< $(@) -d -u -c $(top_srcdir)/po/.intltool-merge-cachemake
# I'd love to have automake do this substitution for me, but then it'd happen
# before intltool above, and that one doesn't understand builddir and so can't
# use the output.
dia.desktop: dia.desktop.in
sed -e 's/@VERSION/@'$(VERSION)'/;' < $< > $@
distclean-local:
rm -f dia.keys
rm -f intltool-extract
rm -f intltool-merge
rm -f intltool-update
mimedir = $(gnomedatadir)/mime-info
mime_DATA = dia.mime dia.keys
po/dia.pot:
(cd po ; $(MAKE) dia.pot)
po/Makefile: po/Makefile.in
(cd po ; make -f Makefile.in Makefile ; make) # gettext hack
core-translation-report: po/dia.pot $(srcdir)/po-checktrans.py $(srcdir)/po-checktrans
if [ ! "$(srcdir)" -ef "." ]; then \
cp $(srcdir)/po-checktrans .; \
cp $(srcdir)/po-checktrans.py .; \
fi
./po-checktrans po/dia.pot $(srcdir)/po/*.po
if [ ! "$(srcdir)" -ef "." ]; then \
rm -f ./po-checktrans ./po-checktrans.py; \
fi
all-local: core-translation-report po/Makefile
tests:
cd tests && $(MAKE) tests
# on uninstall scrollkeeper will leave behind an empty database
# See http://mail.gnome.org/archives/desktop-devel-list/2003-July/msg00144.html
# Requires automake-1.7, so 'export WANT_AUTOMAKE=1.7' before './autogen.sh'
distuninstallcheck_listfiles = find . -type f -print | grep -v '^\./var/scrollkeeper'
#distuninstallcheck:
# @:
EXTRA_DIST = dia.desktop.in.in KNOWN_BUGS $(pkgdata_DATA) \
dia.mime dia.keys.in po-checktrans.py po-checktrans \
intltool-extract.in intltool-merge.in intltool-update.in \
RELEASE-PROCESS autogen.sh makefile.msc \
config.h.win32 readme.win32 AUTHORS MAINTAINERS THANKS \
ChangeLog.pre-git
dist-hook:
@if test -d "$(srcdir)/.git"; then \
echo Creating ChangeLog && \
( cd "$(top_srcdir)" && \
echo '# Generated by Makefile. Do not edit.'; echo; \
$(top_srcdir)/missing --run git log --since=2009-04-15 --date=short --pretty=format:" * %ad %an <%ae> %t%n%n%s%n%n%b" ) > ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|| (rm -f ChangeLog.tmp; \
echo Failed to generate ChangeLog >&2 ); \
else \
echo A git clone is required to generate a ChageLog >&2; \
fi
if MAINTAINER_MODE
THANKS: all-recursive
app/run_dia.sh --credits > THANKS
endif
This diff is collapsed.
dia
dia-embedd
run_dia.sh
run_diaconv.sh
diaconv
dia-app-icons.h
## Process this file with automake to produce Makefile.in
SUBDIRS = pixmaps
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/intl \
-I$(top_srcdir)/lib \
$(DEBUG_FLAGS) \
$(GTK_CFLAGS) \
$(GTK_MAC_CFLAGS) \
$(LIBART_CFLAGS) \
-DPREFIX=\""$(prefix)"\" \
-DDATADIR=\""$(datadir)"\" \
-DLOCALEDIR=\"$(localedir)\"
noinst_PROGRAMS = run_dia.sh
run_dia_sh_SOURCES =
bin_PROGRAMS = dia
ICON_PNG_PAIRS= \
dia_connectable_icon $(srcdir)/pixmaps/connectable.png \
dia_connectable_empty_icon $(srcdir)/pixmaps/connectable-empty.png \
dia_selectable_icon $(srcdir)/pixmaps/selectable.png \
dia_selectable_empty_icon $(srcdir)/pixmaps/selectable-empty.png \
dia_on_grid_icon $(srcdir)/pixmaps/on-grid.png \
dia_off_grid_icon $(srcdir)/pixmaps/off-grid.png \
dia_visible_icon $(srcdir)/pixmaps/visible.png \
dia_visible_empty_icon $(srcdir)/pixmaps/visible-empty.png \
dia_modify_tool_icon $(srcdir)/pixmaps/arrow-22.png \
dia_scroll_tool_icon $(srcdir)/pixmaps/scroll-22.png \
dia_textedit_tool_icon $(srcdir)/pixmaps/textedit-22.png \
dia_zoom_tool_icon $(srcdir)/pixmaps/zoom-22.png \
dia_group_icon $(srcdir)/pixmaps/group.png \
dia_ungroup_icon $(srcdir)/pixmaps/ungroup.png \
dia_mainpoints_on_icon $(srcdir)/pixmaps/mainpoints-on.png \
dia_mainpoints_off_icon $(srcdir)/pixmaps/mainpoints-off.png \
\
dia_diagram_icon $(srcdir)/pixmaps/dia-diagram.png \
dia_app_icon $(srcdir)/pixmaps/dia-app.png \
\
dia_objects_layer_above_icon $(srcdir)/pixmaps/objects-layer-above.png \
dia_objects_layer_below_icon $(srcdir)/pixmaps/objects-layer-below.png \
dia_layers_icon $(srcdir)/pixmaps/layers.png \
dia_layer_add_icon $(srcdir)/pixmaps/layer-add.png \
dia_layer_rename_icon $(srcdir)/pixmaps/layer-rename.png \
\
dia_cursor_create_icon $(srcdir)/pixmaps/cursor-create.png \
dia_cursor_hand_open_icon $(srcdir)/pixmaps/cursor-hand-open.png \
dia_cursor_hand_closed_icon $(srcdir)/pixmaps/cursor-hand-closed.png \
dia_cursor_magnify_minus_icon $(srcdir)/pixmaps/cursor-magnify-minus.png \
dia_cursor_magnify_plus_icon $(srcdir)/pixmaps/cursor-magnify-plus.png
ICON_PNGS= \
pixmaps/connectable.png \
pixmaps/connectable-empty.png \
pixmaps/selectable.png \
pixmaps/selectable-empty.png \
pixmaps/on-grid.png \
pixmaps/off-grid.png \
pixmaps/visible.png \
pixmaps/visible-empty.png \
\
pixmaps/cursor-create.png \
pixmaps/cursor-hand-open.png \
pixmaps/cursor-hand-closed.png \
pixmaps/cursor-magnify-minus.png \
pixmaps/cursor-magnify-plus.png \
\
pixmaps/arrow-22.png \
pixmaps/scroll-22.png \
pixmaps/textedit-22.png \
pixmaps/zoom-22.png \
pixmaps/group.png \
pixmaps/ungroup.png \
pixmaps/mainpoints-on.png \
pixmaps/mainpoints-off.png \
\
pixmaps/objects-layer-above.png \
pixmaps/objects-layer-below.png \
pixmaps/layers.png \
pixmaps/layer-add.png \
pixmaps/layer-rename.png
dia-app-icons.h: $(ICON_PNGS)
gdk-pixbuf-csource --raw --build-list $(ICON_PNG_PAIRS) > dia-app-icons.h
BUILT_SOURCES = dia-app-icons.h
dia_core_files = \
confirm.h \
confirm.c \
exit_dialog.h \
exit_dialog.c \
diagram.c \
diagram.h \
preferences.c \
preferences.h \
load_save.c \
load_save.h \
properties-dialog.c \
properties-dialog.h \
defaults.c \
defaults.h \
undo.c \
undo.h \
object_ops.c \
object_ops.h \
layer_dialog.c \
layer_dialog.h \
commands.c \
commands.h \
app_procs.c \
app_procs.h \
connectionpoint_ops.h \
connectionpoint_ops.c \
disp_callbacks.c \
disp_callbacks.h \
display.c \
display.h \
select.c \
select.h \
color_area.c \
color_area.h \
linewidth_area.c \
linewidth_area.h \
grid.c \
grid.h \
handle_ops.c \
handle_ops.h \
interface.c \
interface.h \
toolbox.c \
toolbox.h \
dia-app-icons.h \
modify_tool.c \
modify_tool.h \
scroll_tool.c \
scroll_tool.h \
create_object.c \
create_object.h \
magnify.c \
magnify.h \
menus.c \
menus.h \
cut_n_paste.c \
cut_n_paste.h \
render_gdk.c \
render_gdk.h \
ruler.c \
ruler.h \
tool.c \
tool.h \
diapagelayout.c \
diapagelayout.h \
pagesetup.c \
pagesetup.h \
filedlg.c \
filedlg.h \
find-and-replace.c \
find-and-replace.h \
plugin-manager.c \
plugin-manager.h \
dia-props.c \
dia-props.h \
gtkwrapbox.h \
gtkwrapbox.c \
gtkhwrapbox.h \
gtkhwrapbox.c \
gtkvwrapbox.h \
gtkvwrapbox.c \
cursor.c \
cursor.h \
splash.c \
dia-app-icons.h \
recent_files.h \
recent_files.c \
\
dia-application.h \
dia-application.c \
\
diagram_tree.h \
diagram_tree_model.c \
diagram_tree_model.h \
diagram_tree_view.c \
\
sheets.c \
sheets.h \
sheets_dialog.c \
sheets_dialog.h \
sheets_dialog_callbacks.c \
sheets_dialog_callbacks.h \
autosave.c \
autosave.h \
authors.h \
dynamic_refresh.h \
dynamic_refresh.c \
navigation.h \
navigation.c \
highlight.c \
highlight.h \
textedit.c \
textedit.h \
textedit_tool.c \
textedit_tool.h \
diagrid.h
dia_SOURCES = \
$(dia_core_files) \
main.c
EFENCE =
dia_LDADD = ../lib/libdia.la \
$(EFENCE) \
$(APP_LIBS) $(Z_LIBS) $(FREETYPE_LIBS) $(GTK_LIBS) $(PNG_LIBS) $(INTLLIBS) $(INTLOBJS) \
$(XML_LIBS) $(LIBART_LIBS) $(GLIB_LIBS) $(GTK_MAC_LIBS)
## Bonobo embeddable dia. Commented out, because it's a bit raw.
## Especially the configure/make parts.
if HAVE_GCC
# OS X would like += rather than =, but Linux automake no like that. Grrr.
dia_LDFLAGS = -export-dynamic
endif
EXTRA_DIST = \
GNOME_Dia.oaf \
winmain.c \
makefile.msc \
dia.def \
dia.ico \
dia.rc \
\
dia-win-remote.c \
\
pixmaps/arrow.xpm \
pixmaps/swap.xpm \
pixmaps/default.xpm \
\
pixmaps/portrait.xpm \
pixmaps/landscape.xpm \
\
pixmaps/missing.xpm \
pixmaps/n_a.xpm \
pixmaps/line_break.xpm \
\
$(ICON_PNGS)
run_dia.sh$(EXEEXT): Makefile.am
echo "#!$(SHELL) " > run_dia.sh
echo DIA_APP_PATH=\"`pwd`\" >>run_dia.sh
echo DIA_BASE_PATH=\"'$$DIA_APP_PATH'/..\" >>run_dia.sh
echo DIA_LIBS_PATH=\"'$$DIA_APP_PATH'/.libs\" >>run_dia.sh
echo >> run_dia.sh
echo DIA_LIB_PATH=\"'$$DIA_BASE_PATH'/objects//:'$$DIA_BASE_PATH'/plug-ins//\" >> run_dia.sh
echo DIA_PLUGIN_PATH=\"'$$DIA_BASE_PATH'/plug-ins\" >> run_dia.sh
echo DIA_SHAPE_PATH=\"'$$DIA_BASE_PATH'/shapes\" >> run_dia.sh
echo DIA_INT_SHAPE_PATH=\"'$$DIA_BASE_PATH'/objects\" >> run_dia.sh
echo DIA_SHEET_PATH=\"'$$DIA_BASE_PATH'/sheets\" >> run_dia.sh
echo DIA_PYTHON_PATH=\"'$$DIA_BASE_PATH'/plug-ins/python\" >> run_dia.sh
echo DIA_XSLT_PATH=\"'$$DIA_BASE_PATH'/plug-ins/xslt\" >> run_dia.sh
echo >> run_dia.sh
echo "export DIA_BASE_PATH DIA_LIB_PATH DIA_SHAPE_PATH DIA_INT_SHAPE_PATH DIA_SHEET_PATH DIA_PLUGIN_PATH DIA_PYTHON_PATH DIA_XSLT_PATH" >> run_dia.sh
echo "if [ \"x\$$DEBUGGER\" != \"x\" ] ; then " >> run_dia.sh
echo " if [ ! -f \"\$$DIA_LIBS_PATH/lt-dia\" -o \"\$$DIA_LIBS_PATH/lt-dia\" -ot \"\$$DIA_LIBS_PATH/dia\" ] ; then" >> run_dia.sh
echo " echo \"libtool relink stage necessary before debugging is possible.\"" >> run_dia.sh
echo " echo \"please run \$$0 once without a debugger.\"" >> run_dia.sh
echo " exit 1" >> run_dia.sh
echo " fi" >> run_dia.sh
echo " \$$DEBUGGER \"\$$DIA_LIBS_PATH/lt-dia\" \"\$$@\"" >> run_dia.sh
echo "else" >> run_dia.sh
echo " \"\$$DIA_APP_PATH/dia\" \"\$$@\"" >> run_dia.sh
echo "fi" >> run_dia.sh
chmod a+x run_dia.sh
# Makefile for mingw (with gnu make, but without bash), use :
# make -f makefile.mingw
WARNINGS =
TOP = ../..
PRJ_TOP = ..
PACKAGE = dia
include $(TOP)/glib/build/win32/make.mingw
LIBART = $(TOP)/libart_lgpl
# -DHAVE_LIBPNG
PKG_CFLAGS = -DHAVE_CONFIG_H \
-fno-exceptions \
-I.. $(GLIB_CFLAGS) $(GTK2_CFLAGS) \
$(LIBXML2_CFLAGS) $(PNG_CFLAGS) \
-I$(PRJ_TOP)/lib -I$(LIBART)/.. -DHAVE_LIBART
PKG_LINK = $(GLIB_LIBS) $(GTK2_LIBS) $(PANGO_LIBS) \
$(LIBXML2_LIBS) $(PNG_LIBS) \
-L $(PRJ_TOP)/lib -llibdia -L $(LIBART) -llibart \
OBJECTS = \
autosave.o \
app_procs.o \
color_area.o \
commands.o \
connectionpoint_ops.o \
create_object.o \
cursor.o \
cut_n_paste.o \
defaults.o \
diagram.o \
diagram_tree.o \
diagram_tree_menu.o \
diagram_tree_menu_callbacks.o \
diagram_tree_window.o \
dialogs.o \
diapagelayout.o \
dia-props.o \
diaunitspinner.o \
disp_callbacks.o \
display.o \
dynamic_refresh.o \
exit_dialog.o \
export_png.o \
filedlg.o \
grid.o \
group.o \
gtkhwrapbox.o \
gtkvwrapbox.o \
gtkwrapbox.o \
handle_ops.o \
interface.o \
layer_dialog.o \
lineprops_area.o \
linewidth_area.o \
load_save.o \
magnify.o \
main.o \
menus.o \
modify_tool.o \
object_ops.o \
pagesetup.o \
paginate_gdiprint.o \
paginate_psprint.o \
plugin-manager.o \
preferences.o \
properties-dialog.o \
recent_files.o \
render_eps.o \
render_gdk.o \
render_libart.o \
render_pixmap.o \
scroll_tool.o \
select.o \
sheets.o \
sheets_dialog.o \
sheets_dialog_callbacks.o \
splash.o \
tool.o \
undo.o \
win32print.o \
winmain.o \
DEPCFLAGS = $(PKG_CFLAGS)
## targets
all : \
$(PRJ_TOP)/config.h \
$(PACKAGE).exe
$(PACKAGE).res : $(PACKAGE).rc $(PACKAGE).ico
rc -r -fo $(PACKAGE).res $(PACKAGE).rc
RESOURCE = $(PACKAGE).res
$(PACKAGE).lib : $(OBJECTS)
lib /out:$(PACKAGE).lib $(OBJECTS)
$(PACKAGE).dll : $(OBJECTS) $(PACKAGE).def
$(CC) $(CFLAGS) -LD -Fe$(PACKAGE).dll $(OBJECTS) $(PKG_LINK) user32.lib advapi32.lib wsock32.lib comdlg32.lib winspool.lib $(LDFLAGS) /def:$(PACKAGE).def
$(PACKAGE).exe : $(OBJECTS) $(PACKAGE).def $(PACKAGE).res
$(CC) $(CFLAGS) -s -o $@ $(OBJECTS) $(LDFLAGS) $(PKG_LINK) -luser32 -lgdi32 -ladvapi32 -lshell32 -lwsock32 -lwinspool -lcomdlg32
# -mwindows
# /def:$(PACKAGE).def
$(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h
clean::
del config.h
del *.exe
del *.o
del *.dll
del *.lib
del *.err
del *.map
del *.sym
del *.exp
del *.lk1
del *.mk1
del *.pdb
del *.ilk
TOP = ..\..
PRJ_TOP = ..
PACKAGE = dia
!INCLUDE $(PRJ_TOP)\dia-make.msc
INCLUDES = \
-FImsvc_recommended_pragmas.h \
-I. -I$(PRJ_TOP) \
$(GLIB_CFLAGS) $(GTK2_CFLAGS) $(LIBXML2_CFLAGS) \
-I$(PRJ_TOP)\lib \
# -DWIN32 for newer libxml versions
DEFINES = \
-DHAVE_CONFIG_H \
-DWIN32 \
-DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED \
PKG_LINK = $(GTK2_LIBS) $(GLIB_LIBS) $(GTHREAD_LIBS) $(PANGOWIN32_LIBS) $(PANGOCAIRO_LIBS) \
$(LIBXML2_LIBS) \
$(PRJ_TOP)\lib\libdia.lib $(CAIRO_LIBS) \
$(GDK_PIXBUF_LIBS) $(INTL_LIBS) \
OBJECTS = \
autosave.obj \
app_procs.obj \
color_area.obj \
commands.obj \
confirm.obj \
connectionpoint_ops.obj \
create_object.obj \
cursor.obj \
cut_n_paste.obj \
defaults.obj \
diagram.obj \
diapagelayout.obj \
dia-props.obj \
disp_callbacks.obj \
display.obj \
dynamic_refresh.obj \
exit_dialog.obj \
filedlg.obj \
find-and-replace.obj \
grid.obj \
gtkhwrapbox.obj \
gtkvwrapbox.obj \
gtkwrapbox.obj \
handle_ops.obj \
highlight.obj \
interface.obj \
layer_dialog.obj \
linewidth_area.obj \
load_save.obj \
magnify.obj \
menus.obj \
modify_tool.obj \
navigation.obj \
object_ops.obj \
pagesetup.obj \
plugin-manager.obj \
preferences.obj \
properties-dialog.obj \
recent_files.obj \
render_gdk.obj \
ruler.obj \
scroll_tool.obj \
select.obj \
sheets.obj \
sheets_dialog.obj \
sheets_dialog_callbacks.obj \
splash.obj \
textedit.obj \
textedit_tool.obj \
tool.obj \
toolbox.obj \
undo.obj \
\
diagram_tree_model.obj \
diagram_tree_view.obj \
\
dia-application.obj
ICON_PNG_PAIRS = \
dia_connectable_icon pixmaps\connectable.png \
dia_connectable_empty_icon pixmaps\connectable-empty.png \
dia_selectable_icon pixmaps\selectable.png \
dia_selectable_empty_icon pixmaps\selectable-empty.png \
dia_on_grid_icon pixmaps\on-grid.png \
dia_off_grid_icon pixmaps\off-grid.png \
dia_visible_icon pixmaps\visible.png \
dia_visible_empty_icon pixmaps\visible-empty.png \
dia_modify_tool_icon pixmaps\arrow-22.png \
dia_textedit_tool_icon pixmaps\textedit-22.png \
dia_scroll_tool_icon pixmaps\scroll-22.png \
dia_zoom_tool_icon pixmaps\zoom-22.png \
dia_group_icon pixmaps\group.png \
dia_ungroup_icon pixmaps\ungroup.png \
dia_mainpoints_on_icon pixmaps\mainpoints-on.png \
dia_mainpoints_off_icon pixmaps\mainpoints-off.png \
\
dia_diagram_icon pixmaps\dia-diagram.png \
dia_app_icon pixmaps\dia-app.png \
\
dia_objects_layer_above pixmaps\objects-layer-above.png \
dia_objects_layer_below pixmaps\objects-layer-below.png \
dia_layers pixmaps\layers.png \
dia_layer_add pixmaps\layer-add.png \
dia_layer_rename pixmaps\layer-rename.png \
\
dia_cursor_create pixmaps\cursor-create.png \
dia_cursor_hand_open pixmaps\cursor-hand-open.png \
dia_cursor_hand_closed pixmaps\cursor-hand-closed.png \
dia_cursor_magnify_minus pixmaps\cursor-magnify-minus.png \
dia_cursor_magnify_plus pixmaps\cursor-magnify-plus.png \
dia-app-icons.h : makefile.msc pixmaps\*.png
gdk-pixbuf-csource --build-list \
$(ICON_PNG_PAIRS) > dia-app-icons.h || del dia-app-icons.h
# No general LDFLAGS needed
# /subsystem:console and /subsystem:windows have their own exe
INSTALL = copy
## targets
all : \
$(PRJ_TOP)\config.h \
dia-app-icons.h \
$(PACKAGE)-app.dll \
$(PACKAGE).exe \
$(PACKAGE)w.exe \
$(PACKAGE)-win-remote.exe
$(PACKAGE).res : $(PACKAGE).rc $(PACKAGE).ico
rc -r -fo $(PACKAGE).res $(PACKAGE).rc
RESOURCE = $(PACKAGE).res
$(PACKAGE).lib : $(OBJECTS)
lib /out:$(PACKAGE).lib $(OBJECTS)
$(PACKAGE)-app.dll : $(OBJECTS) $(PACKAGE).def
$(CC) $(CFLAGS) -LD -Fe$(PACKAGE)-app.dll $(OBJECTS) \
$(LDFLAGS) $(PKG_LINK) gdi32.lib user32.lib advapi32.lib shell32.lib wsock32.lib /def:$(PACKAGE).def
$(PACKAGE).exe : $(OBJECTS) $(PACKAGE).def $(PACKAGE).res main.obj $(PACKAGE)-app.dll
$(CC) $(CFLAGS) -Fe$(PACKAGE).exe $(PACKAGE).res main.obj \
$(LDFLAGS) dia-app.lib $(PKG_LINK) user32.lib advapi32.lib /subsystem:console
$(PACKAGE)w.exe : $(OBJECTS) $(PACKAGE).def $(PACKAGE).res winmain.obj $(PACKAGE)-app.dll
$(CC) $(CFLAGS) -Fe$(PACKAGE)w.exe $(PACKAGE).res winmain.obj \
$(LDFLAGS) dia-app.lib $(PKG_LINK) gdi32.lib comdlg32.lib user32.lib advapi32.lib $(LDFLAGS) /subsystem:windows
$(PACKAGE)-win-remote.exe : dia-win-remote.c dia-win-remote.obj
$(CC) $(CFLAGS) -Fedia-win-remote.exe $(PACKAGE).res dia-win-remote.obj \