Re: [Tack-devel] Prime Mover commands
Moved to https://github.com/davidgiven/ack
Brought to you by:
dtrg
From: tim k. <gt...@di...> - 2006-07-25 18:08:27
|
Ok, so I took a look at some of the pmfiles and the Makefile on the project I'm wanting to attempt to build and decided to move to a much simpler project until I get the hang of pm. I have some questions: The application I'm building has three files, one is a C file and two are assembly files. Additionally, the as needs to see -mrenames as a flag during the build process. Here is the Makefile: SHELL= /bin/sh SRC_PATH?= ${PWD}/ PROG= memcopy OBJ_PATH= ${SRC_PATH}obj/ #OBJS= fourbytes.o non-aligned.main.o sixteenbytes.o OBJS= main.o fourbytes.o sixteenbytes.o CC?= cc #CFLAGS= -static -Winline -O3 CFLAGS= -Winline -O3 LD?= ld LDFLAGS= AS?= as ASFLAGS= -mregnames all: ${PROG} ${PROG}: ${OBJS} ${CC} ${CFLAGS} -o ${PROG} $(OBJS) main.o: main.c ${CC} ${CFLAGS} -c ${SRC_PATH}main.c > ${OBJ_PATH}main.o fourbytes.o: fourbytes.s ${AS} ${ASFLAGS} -o ${OBJ_PATH}fourbytes.o ${SRC_PATH}fourbytes.s sixteenbytes.o: sixteenbytes.s ${AS} ${ASFLAGS} -o ${OBJ_PATH}sixteenbytes.o \ ${SRC_PATH}sixteenbytes.s clean: rm -f ${OBJ_PATH}*.o .PHONY: clean which actually doesn't work as is. The PWD variable oddly gets the directory wrong, but I have altered it to read how I think the path should be determined for SRC_PATH (typically the current working directory). I don't actually reference ld, so that can be ignored. Where's a good place to start? thanks in advance, tim Gregory T. (tim) Kelly Owner Dialectronics.com P.O. Box 606 Newberry, SC 29108 "Anything war can do, peace can do better." -- Bishop Desmond Tutu |