ES-2024 reverter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
123456789101112131415161718192021222324252627
  1. CFLAGS := -O2 -pipe -Wall
  2. all: zyxel-revert compress decompress cfgpatch
  3. zyxel-revert: event.o filedata.o linebuffer.o logging.o context.o serial.o statemachine.o xmodem.o zyxel-revert.o
  4. $(CC) $(CFLAGS) $^ -o $@
  5. compress: filedata.o lzsc.o romfile.o compress.o
  6. $(CC) $(CFLAGS) $^ -o $@
  7. decompress: filedata.o lzsd.o romfile.o decompress.o
  8. $(CC) $(CFLAGS) $^ -o $@
  9. cfgpatch: configdata.o filedata.o cfgpatch.o
  10. $(CC) $(CFLAGS) $^ -o $@
  11. %.o: %.c
  12. $(CC) $(CFLAGS) -c $< -o $@
  13. %.d: %.c
  14. $(CC) $(CFLAGS) -MM -c $< -o $@
  15. clean:
  16. rm -f zyxel-revert compress decompress cfgpatch *.d *.o *.log
  17. DEPS := $(wildcard *.c)
  18. -include $(DEPS:.c=.d)