diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-18 21:17:53 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-18 21:17:53 +0000 |
commit | 52fc121ac6444a506e2378225194faf5067008e4 (patch) | |
tree | 0cb19e0cbd0ca1deaeea6aba5022d4675a8b8111 /nuttx/examples/nxflat/tests/mutex/Makefile | |
parent | e77fe99962337e339262ea579487eeb3ff50c4b4 (diff) | |
download | px4-nuttx-52fc121ac6444a506e2378225194faf5067008e4.tar.gz px4-nuttx-52fc121ac6444a506e2378225194faf5067008e4.tar.bz2 px4-nuttx-52fc121ac6444a506e2378225194faf5067008e4.zip |
Integrated mknxflat
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1905 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nxflat/tests/mutex/Makefile')
-rw-r--r-- | nuttx/examples/nxflat/tests/mutex/Makefile | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/nuttx/examples/nxflat/tests/mutex/Makefile b/nuttx/examples/nxflat/tests/mutex/Makefile index 675a050eb..8e0254d3e 100644 --- a/nuttx/examples/nxflat/tests/mutex/Makefile +++ b/nuttx/examples/nxflat/tests/mutex/Makefile @@ -39,22 +39,34 @@ include ../Make.defs # NXFLAT make info BIN = mutex -SRCS = $(BIN).c -OBJS = $(SRCS:.c=.o) +R1SRCS = $(BIN).c +R1OBJS = $(R1SRCS:.c=.o) + +R2SRC = $(BIN)-thunk.S +R2OBJ = $(R2SRC:.S=.o) all: $(BIN) -$(OBJS): %.o: %.c +$(R1OBJS): %.o: %.c + $(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@ + +$(R2OBJ): %.o: %.S $(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@ -$(BIN).rnx: $(OBJS) +$(BIN).r1: $(R1OBJS) + $(NXFLATLD) -r $(NXFLATLDFLAGS) -o $@ $^ + +$(R2SRC): $(BIN).r1 + $(MKNXFLAT) -o $@ $^ + +$(BIN).r2: $(R2OBJ) $(NXFLATLD) -r $(NXFLATLDFLAGS) -o $@ $^ -$(BIN): $(BIN).rnx +$(BIN): $(BIN).r2 touch $(BIN) # For now clean: - rm -f $(BIN) *.o *.rnx *~ .*.swp core + rm -f $(BIN) $(R2SRC) *.o *.r1 *.r2 *~ .*.swp core install: install -D $(BIN) $(ROMFS_DIR)/$(BIN) |