# -*- Makefile -*-
ARCH := $(patsubst i%86,i386,$(shell uname -m))
ARCH := $(patsubst sparc%,sparc,$(ARCH))

ifeq (x86_64, $(ARCH))
LIB = lib64
else
LIB	= lib
endif

VERSION     = 2.2.10-BOOT                                                                             
SUDO        = sudo
SO_FILES    = c/blib/arch/auto/c/c.so                                                                 
PMS_DIRS    = c diskdrake harddrake interactive network Newt partition_table resize_fat sbus_probing security Xconfig
PMS         = *.pm $(PMS_DIRS:%=%/*.pm) commands install2 g_auto_install live_install live_install2 share/advertising/*.pl
STANDALONEPMS_ = diskdrake XFdrake mousedrake printerdrake logdrake keyboarddrake drakconnect drakbackup drakfont drakproxy localedrake net_monitor drakbug_report tinyfirewall drakxservices draksec drakboot adduserdrake drakgw drakautoinst livedrake lsnetdrake scannerdrake fileshareset drakxtv drakfloppy harddrake2 drakTermServ service_harddrake service_harddrake.sh drakbug
STANDALONEPMS = $(STANDALONEPMS_:%=standalone/%)
ALLPMS	    = $(PMS) $(STANDALONEPMS)
REP4PMS     = /usr/bin/perl-install
ROOTDEST    = /export
DEST        = $(ROOTDEST)/Mandrake/mdkinst
STAGE2      = $(ROOTDEST)/Mandrake/base/mdkinst_stage2
BASE        = $(ROOTDEST)/Mandrake/base
DESTREP4PMS = $(DEST)$(REP4PMS)
PERL        = perl
LOCALFILES  = $(patsubst %, ../tools/%,ddcprobe/ddcxinfos aewm-drakx/aewm-drakx serial_probe/serial_probe xhost+)
DIRS        = c Newt resize_fat #po 
CFLAGS	    = -Wall
override CFLAGS  += -pipe