diff options
Diffstat (limited to 'misc/pascal/nuttx/Makefile')
-rw-r--r-- | misc/pascal/nuttx/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/misc/pascal/nuttx/Makefile b/misc/pascal/nuttx/Makefile index 1e6691f009..f04055db3c 100644 --- a/misc/pascal/nuttx/Makefile +++ b/misc/pascal/nuttx/Makefile @@ -52,20 +52,19 @@ OBJS = $(AOBJS) $(COBJS) BIN = libpcode$(LIBEXT) -VPATH = insn/prun:libpoff +VPATH = insn/prun:libpoff:libpas all: $(BIN) $(AOBJS): %$(OBJEXT): %.S - $(CC) -c $(CFLAGS) -D__ASSEMBLY__ $< -o $@ + $(call ASSEMBLE, $<, $@) $(COBJS): %$(OBJEXT): %.c - $(CC) -c $(CFLAGS) $< -o $@ + $(call COMPILE, $<, $@) $(BIN): $(OBJS) ( for obj in $(OBJS) ; do \ - $(AR) $@ $${obj} || \ - { echo "$(AR) $@ $obj FAILED!" ; exit 1 ; } ; \ + $(call ARCHIVE, $@, $${obj}); \ done ; ) .depend: Makefile $(SRCS) @@ -76,7 +75,8 @@ $(BIN): $(OBJS) depend: .depend clean: - rm -f $(BIN) *.o *.rel *.asm *.lst *.sym *.adb *~ + rm -f $(BIN) *~ .*.swp + $(call CLEAN) distclean: clean rm -f Make.dep .depend |