diff options
Diffstat (limited to 'libc/syscall')
-rw-r--r-- | libc/syscall/Makefile | 6 | ||||
-rw-r--r-- | libc/syscall/mksyscall | 3 |
2 files changed, 2 insertions, 7 deletions
diff --git a/libc/syscall/Makefile b/libc/syscall/Makefile index fd1b187..a064c3f 100644 --- a/libc/syscall/Makefile +++ b/libc/syscall/Makefile @@ -28,7 +28,7 @@ endif CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS) all: $(SYSCALLS) $(LIBC) - @: + @$(RM) $(OBJ) call_i86: syscall.mak $(MAKE) -f syscall.mak LIBC="$(LIBC)" CFLAGS="$(CFLAGS)" @@ -41,22 +41,18 @@ $(LIBC): $(LIBC)($(OBJ)) $(LIBC)($(LOBJ)): $(LSRC) $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o $(AR) $(ARFLAGS) $@ $*.o - $(RM) $*.o $(LIBC)($(DOBJ)): $(DSRC) $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o $(AR) $(ARFLAGS) $@ $*.o - $(RM) $*.o $(LIBC)($(EOBJ)): $(ESRC) $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o $(AR) $(ARFLAGS) $@ $*.o - $(RM) $*.o $(LIBC)($(LOBJ0)): $(LSRC0) $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o $(AR) $(ARFLAGS) $@ $*.o - $(RM) $*.o clean: rm -f *.o libc.a diff --git a/libc/syscall/mksyscall b/libc/syscall/mksyscall index 2005029..f7b91a6 100644 --- a/libc/syscall/mksyscall +++ b/libc/syscall/mksyscall @@ -278,12 +278,11 @@ END{ cat >> syscall.mak <<\! all: $(LIBC)($(OBJ)) - @: + @$(RM) $(OBJ) $(LIBC)($(OBJ)): syscall.dat $(CC) $(CFLAGS) -DL_$* syscall.c -c -o $*.o $(AR) $(ARFLAGS) $@ $*.o - $(RM) $*.o ! exit $? |