2007-04-23 10:23:40 +02:00
|
|
|
CFLAGS := -O2 -pipe -Wall
|
|
|
|
|
2007-04-29 19:08:12 +02:00
|
|
|
all: zyxel-revert compress decompress
|
2007-04-23 10:23:40 +02:00
|
|
|
|
2007-04-30 14:32:54 +02:00
|
|
|
zyxel-revert: configfile.o event.o filedata.o logging.o context.o serial.o statemachine.o xmodem.o zyxel-revert.o
|
2007-04-29 19:08:12 +02:00
|
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
|
|
|
|
compress: lzsc.o filedata.o compress.o
|
|
|
|
$(CC) $(CFLAGS) $^ -o $@
|
2007-04-23 10:23:40 +02:00
|
|
|
|
2007-04-29 19:08:12 +02:00
|
|
|
decompress: lzsd.o filedata.o decompress.o
|
2007-04-23 10:23:40 +02:00
|
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
%.d: %.c
|
|
|
|
$(CC) $(CFLAGS) -MM -c $< -o $@
|
|
|
|
|
|
|
|
clean:
|
2007-04-29 19:08:12 +02:00
|
|
|
rm -f zyxel-revert compress decompress *.d *.o *.log
|
2007-04-23 10:23:40 +02:00
|
|
|
|
|
|
|
DEPS := $(wildcard *.c)
|
|
|
|
-include $(DEPS:.c=.d)
|