# Makefile for xenutils # # Creation: 2008-07-23 rg # Last Update: $Id$ # # Copyright (c) 2008 the eisfair team, team(at)eisfair(dot)org # # 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. #------------------------------------------------------------------------------ SHELL = /bin/sh srcdir = . builddir = ${srcdir}/build_results CC = gcc CFLAGS = -Wall -O3 -march=i486 XEN_PRE_SETUP_SRC = ${srcdir}/xen-pre-setup.c XEN_PRE_SETUP_BIN = ${builddir}/xen-pre-setup.bin XEN_PRE_SETUP_DBG = ${builddir}/xen-pre-setup.bin_debug .PHONY: all all: pre-setup pre-setup_debug .PHONY: pre-setup pre-setup: builddir ${XEN_PRE_SETUP_BIN} small .PHONY: pre-setup_debug pre-setup_debug: builddir ${XEN_PRE_SETUP_DBG} ${XEN_PRE_SETUP_BIN}: ${XEN_PRE_SETUP_SRC} $(CC) $(CFLAGS) ${XEN_PRE_SETUP_SRC} -o $@ ${XEN_PRE_SETUP_DBG}: ${XEN_PRE_SETUP_SRC} $(CC) -D_DEBUG $(CFLAGS) ${XEN_PRE_SETUP_SRC} -o $@ .PHONY: builddir builddir: -mkdir ${builddir} .PHONY: small small: strip -s -R .comment ${XEN_PRE_SETUP_BIN} .PHONY: clean clean: rm -r ${builddir}