mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
56481cd659
build system. (top level rules.mak, etc....) Travis Snoozy <ai2097@yahoo.com> svn path=/trunk/; revision=9579
49 lines
1.5 KiB
Makefile
49 lines
1.5 KiB
Makefile
#
|
|
# FreeLoader
|
|
# Copyright (C) 1999 - 2003 Brian Palmer <brianp@sginet.com>
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
#
|
|
|
|
|
|
FLAGS = -Wall
|
|
|
|
OBJS = rs232.o fdebug.o fdebug.res
|
|
|
|
.PHONY : clean
|
|
|
|
all: fdebug.exe
|
|
|
|
fdebug.exe: $(OBJS)
|
|
@echo ===================================================== LINKING fdebug
|
|
$(CC) $(FLAGS) -o fdebug.exe $(OBJS) -lgdi32 -lcomdlg32 -Wl,--subsystem,windows
|
|
|
|
fdebug.res: fdebug.rc resource.h
|
|
@echo ===================================================== Compiling $*
|
|
$(WINDRES) -o fdebug.res fdebug.rc -O coff
|
|
|
|
fdebug.o: fdebug.c rs232.h
|
|
@echo ===================================================== Compiling $*
|
|
$(CC) $(FLAGS) -o fdebug.o -c fdebug.c
|
|
|
|
rs232.o: rs232.c rs232.h
|
|
@echo ===================================================== Compiling $*
|
|
$(CC) $(FLAGS) -o rs232.o -c rs232.c
|
|
|
|
clean:
|
|
@-$(RM) *.o
|
|
@-$(RM) *.res
|
|
@-$(RM) *.exe
|
|
@echo Clean ALL done.
|