View Single Post
Posts: 515 | Thanked: 266 times | Joined on Nov 2009 @ Oelsted, Denmark
#156
I think I finally figured it out...

This is the makefile I ended up with:
Code:
CFLAGS=-g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM
# CFLAGS=-g -O2 -D JFS -D GETUSER -Wall -D POWER
#CFLAGS=-g -D JFS -D GETUSER 
LDFLAGS=-lncurses -g
FILE=lmon.c
TARGET=armel
all: $(TARGET)

install: $(TARGET)
	mkdir -p  $(DESTDIR)/usr/bin
	cp $(TARGET) $(DESTDIR)/usr/bin 

clean:
	rm $(TARGET)

armel:
	cc -o nmon $(FILE) $(CFLAGS) $(LDFLAGS) -D ARMEL
With the above make file I was able to run mad make, mad dh_make --single --createorig and mad dpkg-buildpackage as advised by rontti...
__________________
Christian Wilken - tux-POWER.dk!
... May the Source be with You ...

Last edited by DrWilken; 2010-02-08 at 22:27.