2007-04-23 10:23:40 +02:00
|
|
|
CFLAGS := -O2 -pipe -Wall
|
|
|
|
|
2007-04-30 16:35:22 +02:00
|
|
|
all: zyxel-revert compress decompress cfgpatch
|
2007-04-23 10:23:40 +02:00
|
|
|
|
2007-05-02 20:32:36 +02:00
|
|
|
zyxel-revert: 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 $@
|
|
|
|
|
2007-04-30 16:35:22 +02:00
|
|
|
compress: filedata.o lzsc.o romfile.o compress.o
|
2007-04-29 19:08:12 +02:00
|
|
|
$(CC) $(CFLAGS) $^ -o $@
|
2007-04-23 10:23:40 +02:00
|
|
|
|
2007-04-30 16:35:22 +02:00
|
|
|
decompress: filedata.o lzsd.o romfile.o decompress.o
|
|
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
|
|
|
|
cfgpatch: configdata.o filedata.o cfgpatch.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-30 16:35:22 +02:00
|
|
|
rm -f zyxel-revert compress decompress cfgpatch *.d *.o *.log
|
2007-04-23 10:23:40 +02:00
|
|
|
|
|
|
|
DEPS := $(wildcard *.c)
|
|
|
|
-include $(DEPS:.c=.d)
|