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.
 
 

25 lines
523 B

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