74 lines
2.1 KiB
Makefile
74 lines
2.1 KiB
Makefile
#######################################################################
|
|
#
|
|
# Copyright (C) 2004 Novell, Inc.
|
|
#
|
|
# 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.
|
|
#
|
|
# Author: Juan Carlos Luciani <jluciani@novell.com>
|
|
#
|
|
#######################################################################
|
|
|
|
if DEBUG
|
|
TARGET_CFG = Debug
|
|
else
|
|
TARGET_CFG = Release
|
|
endif
|
|
|
|
# handle Mono secondary dependencies
|
|
export MONO_PATH := $(MONO_PATH)
|
|
|
|
ModInstall_CFILES = $(srcdir)/modinstall.c
|
|
ModInstall_OBJ = modinstall.o
|
|
ModInstall_CSFILES_CSC :=
|
|
ModInstall_INCLUDES =
|
|
ModInstall_RESOURCES =
|
|
ModInstall_CFLAGS = $(CFLAGS)
|
|
ModInstall_LIBS =
|
|
ModInstall_LIBPATH =
|
|
|
|
EXTRA_DIST = $(ModInstall_CFILES)
|
|
|
|
CUR_DIR := $(shell pwd)
|
|
|
|
all: modinstall
|
|
|
|
modinstall: $(ModInstall_CFILES)
|
|
$(mkinstalldirs) bin/$(TARGET_CFG)
|
|
$(CC) -g -o bin/$(TARGET_CFG)/$@ $(ModInstall_CFILES)
|
|
|
|
install-exec-local: modinstall
|
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
|
$(INSTALL_PROGRAM) bin/$(TARGET_CFG)/modinstall $(DESTDIR)$(bindir)/
|
|
|
|
uninstall-local:
|
|
cd $(DESTDIR)$(bindir); rm -f modinstall
|
|
rmdir $(DESTDIR)$(bindir)
|
|
|
|
#installcheck-local: install
|
|
# $(mkinstalldirs) $(DESTDIR)$(bindir)
|
|
# $(INSTALL_PROGRAM) $(DESTDIR)$(bindir)
|
|
# cd $(DESTDIR)$(bindir); $(MONO)
|
|
|
|
CLEAN_FILES = bin/$(TARGET_CFG)/modinstall
|
|
|
|
clean-local:
|
|
rm -rf *.dbg *.exe *.so *.o *.dll $(CLEAN_FILES) $(COMMON_CLEAN_FILES)
|
|
|
|
distclean-local:
|
|
|
|
maintainer-clean-local:
|
|
rm -f Makefile.in
|
|
|