diff -d -r -u procps-orig/Makefile procps-3.2.7/Makefile --- procps-orig/Makefile 2006-06-24 05:02:25.000000000 -0400 +++ procps-3.2.7/Makefile 2008-11-13 12:18:32.000000000 -0500 @@ -24,10 +24,12 @@ ############ vars # so you can disable them or choose alternates -ldconfig := ldconfig +#ldconfig := ldconfig +ldconfig := echo ln_f := ln -f ln_sf := ln -sf -install := install -D --owner 0 --group 0 +install := install -D +DESTDIR := /mnt # Lame x86-64 /lib64 and /usr/lib64 abomination: lib64 := lib$(shell [ -d /lib64 ] && echo 64) @@ -44,6 +46,8 @@ usr/include := $(DESTDIR)/usr/include/ #SKIP := $(bin)kill $(man1)kill.1 +#### Get rid of those utils needing ncurses includes. +SKIP := $(usr/bin)slabtop $(man1)slabtop.1 $(usr/bin)top $(man1)top.1 $(usr/bin)watch $(man1)watch.1 BINFILES := $(usr/bin)uptime $(usr/bin)tload $(usr/bin)free $(usr/bin)w \ $(usr/bin)top $(usr/bin)vmstat $(usr/bin)watch $(usr/bin)skill \ @@ -80,9 +84,13 @@ #LIBTYPE := -DSTATICLIB #endif +CC := mipsel-linux-gcc + # Preprocessor flags. PKG_CPPFLAGS := -D_GNU_SOURCE -I proc -CPPFLAGS := -I/usr/include/ncurses +#CPPFLAGS := -I/usr/include/ncurses +CPPFLAGS= -I. -I.. -I/opt/nasoc/src/include -I/mnt/include -I/opt/nasoc/src/linux/linux/include + ALL_CPPFLAGS := $(PKG_CPPFLAGS) $(CPPFLAGS) # Left out -Wconversion due to noise in glibc headers. @@ -106,7 +114,7 @@ ALL_CFLAGS := $(PKG_CFLAGS) $(CFLAGS) PKG_LDFLAGS := -Wl,-warn-common -LDFLAGS := +LDFLAGS := -L/mnt/lib ALL_LDFLAGS := $(PKG_LDFLAGS) $(LDFLAGS) ############ Add some extra flags if gcc allows @@ -163,7 +171,9 @@ .PHONY: all clean do_all install tar extratar beta -ALL := $(notdir $(BINFILES)) +#ALL := $(notdir $(BINFILES)) +### I need it to filter before it trys to compile. +ALL := $(notdir $(filter-out $(SKIP) $(addprefix $(DESTDIR),$(SKIP)),$(BINFILES))) CLEAN := $(notdir $(BINFILES)) diff -d -r -u procps-orig/proc/module.mk procps-3.2.7/proc/module.mk --- procps-orig/proc/module.mk 2004-09-23 09:10:42.000000000 -0400 +++ procps-3.2.7/proc/module.mk 2008-11-13 12:19:26.000000000 -0500 @@ -81,7 +81,7 @@ # AUTOMATIC DEPENDENCY GENERATION -- GCC AND GNUMAKE DEPENDENT proc/.depend: $(LIBSRC) $(LIBHDR) - $(strip $(CC) $(ALL_CPPFLAGS) $(LIB_CFLAGS) -MM -MG $(LIBSRC) > $@) + $(mipsel-linux-strip $(CC) $(ALL_CPPFLAGS) $(LIB_CFLAGS) -MM -MG $(LIBSRC) > $@) ifneq ($(MAKECMDGOALS),clean) ifneq ($(MAKECMDGOALS),tar)