replace linux application

This commit is contained in:
Olaf Rempel
2012-02-11 12:44:02 +01:00
parent 9424e20ea7
commit ca2a0a99ae
15 changed files with 2019 additions and 1015 deletions

View File

@@ -1,4 +1,5 @@
TARGET = twiboot
TARGET = twiboot
TARGET2 = mpmboot
CFLAGS = -Wall -Wno-unused-result -O2 -MMD -MP -MF $(*F).d
@@ -11,12 +12,13 @@ all: $(TARGET)
$(TARGET): $(SRC:.c=.o)
@echo " Linking file: $@"
@$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) > /dev/null
@ln -sf $@ $(TARGET2)
%.o: %.c
@echo " Building file: $<"
@$(CC) -c $(CFLAGS) $< -o $@
clean:
rm -rf $(TARGET) *.o *.d
rm -rf $(TARGET) $(TARGET2) *.o *.d
-include $(shell find . -name \*.d 2> /dev/null)