3 # Copyright (C) 1999 - 2003 Brian Palmer <brianp@sginet.com>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 # Windows is default host environment
23 HOST
= mingw32-windows
27 # Choose various options
29 ifeq ($(HOST
),mingw32-linux
)
36 WINDRES
= mingw32-windres
50 OBJS
= rs232.o fdebug.o fdebug.res
57 @echo
===================================================== LINKING fdebug
58 $(CC
) $(FLAGS
) -o fdebug.exe
$(OBJS
) -lgdi32
-lcomdlg32
-Wl
,--subsystem
,windows
60 fdebug.res
: fdebug.rc resource.h
61 @echo
===================================================== Compiling
$*
62 $(WINDRES
) -o fdebug.res fdebug.rc
-O coff
64 fdebug.o
: fdebug.c rs232.h
65 @echo
===================================================== Compiling
$*
66 $(CC
) $(FLAGS
) -o fdebug.o
-c fdebug.c
68 rs232.o
: rs232.c rs232.h
69 @echo
===================================================== Compiling
$*
70 $(CC
) $(FLAGS
) -o rs232.o
-c rs232.c