se505-buildsystem/tools/Makefile

28 lines
640 B
Makefile
Raw Normal View History

2007-06-15 15:11:23 +02:00
CFLAGS := -O2 -Wall
all: gen_image split_image untrx split_linux
gen_image: gen_image.o crc32.o
gcc gen_image.o crc32.o -o gen_image
gen_image.o: gen_image.c
gcc $(CFLAGS) -I. -c gen_image.c
crc32.o: crc32.c
gcc $(CFLAGS) -c crc32.c
split_image: split_image.c
gcc $(CFLAGS) -I. split_image.c -o split_image
untrx: untrx.c
gcc $(CFLAGS) -I. untrx.c -o untrx
split_linux: split_linux.c
gcc $(CFLAGS) -I. split_linux.c -o split_linux
clean:
rm -f gen_image.o crc32.o gen_image split_image untrx split_linux
dist:
tar -czf image-tools.tar.gz Makefile trxhdr.h typedefs.h gen_image.c crc32.c split_image.c untrx.c split_linux.c