21 |
$(HOST_CC) $(CFLAGS) $(DEFINES) -c -o $@ $< |
$(HOST_CC) $(CFLAGS) $(DEFINES) -c -o $@ $< |
22 |
|
|
23 |
clean: |
clean: |
24 |
|
# avoid old build problems by removing potentially incorrect old files |
25 |
|
rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h |
26 |
rm -f *.o *.a $(TOOLS) dyngen TAGS |
rm -f *.o *.a $(TOOLS) dyngen TAGS |
27 |
for d in $(TARGET_DIRS); do \ |
for d in $(TARGET_DIRS); do \ |
28 |
make -C $$d $@ || exit 1 ; \ |
make -C $$d $@ || exit 1 ; \ |
29 |
done |
done |
30 |
|
|
31 |
distclean: clean |
distclean: clean |
32 |
rm -f config-host.mak config-host.h config.mak config.h |
rm -f config-host.mak config-host.h |
33 |
for d in $(TARGET_DIRS); do \ |
for d in $(TARGET_DIRS); do \ |
34 |
rm -f $$d/config.h $$d/config.mak || exit 1 ; \ |
rm -f $$d/config.h $$d/config.mak || exit 1 ; \ |
35 |
done |
done |