| 6 | | atftp: |
|---|
| 7 | | [ -d $(ATFTP_DIR) ] |
|---|
| 8 | | (cd $(ATFTP_DIR); ./configure --disable-libreadline; make;) |
|---|
| 9 | | cp $(ATFTP_DIR)/$@ . |
|---|
| | 11 | CFLAGS=-Wall -O2 -DLBLIMAGEVER=\"1.2\" -I$(ZLIB) -I./e2fsprogs-1.22/lib/ |
|---|
| | 12 | LDFLAGS=-s |
|---|
| | 13 | LIBS= -L. -llrs |
|---|
| | 14 | RFSLIBS=-L./reiserfsprogs/lib/ -lcore -lmisc |
|---|
| | 15 | |
|---|
| | 16 | all: $(OBJ) $(LIBOBJ) liblrs.so.1 liblrs.a \ |
|---|
| | 17 | image_swap image_lvmreiserfs image_fat \ |
|---|
| | 18 | image_ntfs image_e2fs image_xfs image_jfs image_lvm \ |
|---|
| | 19 | decompress decompress-test image_raw decompress-bitmap |
|---|
| | 20 | |
|---|
| | 21 | depend: |
|---|
| | 22 | gcc -M $(CFLAGS) *.c >.depend |
|---|
| | 23 | |
|---|
| | 24 | image_fat: |
|---|
| | 25 | # cc $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) |
|---|
| | 26 | |
|---|
| | 27 | image_swap: image_swap.o |
|---|
| | 28 | cc $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) |
|---|
| | 29 | |
|---|
| | 30 | image_raw: image_raw.o |
|---|
| | 31 | cc $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) |
|---|
| | 32 | |
|---|
| | 33 | image_ntfs: |
|---|
| | 34 | # cc $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) |
|---|
| | 35 | |
|---|
| | 36 | image_e2fs: image_e2fs.o |
|---|
| | 37 | cc $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) -L./e2fsprogs-1.22/lib -lext2fs -le2p -luuid -lcom_err |
|---|
| | 38 | |
|---|
| | 39 | image_xfs: image_xfs.o |
|---|
| | 40 | cc $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) |
|---|
| | 41 | |
|---|
| | 42 | image_jfs: image_jfs.o |
|---|
| | 43 | cc $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) |
|---|
| | 44 | |
|---|
| | 45 | image_lvm: image_lvm.o lvm.o |
|---|
| | 46 | cc $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) |
|---|
| | 47 | |
|---|
| | 48 | image_lvmreiserfs: lvm.o image_lvmreiserfs.o |
|---|
| | 49 | cc $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(RFSLIBS) |
|---|
| | 50 | |
|---|
| | 51 | decompress: decompress.o $(OBJ) |
|---|
| | 52 | cc $(CFLAGS) $(LDFLAGS) -L. -llrs -lnewt -o $@ $^ |
|---|
| | 53 | |
|---|
| | 54 | decompress-test: decompress-test.o $(OBJ) |
|---|
| | 55 | cc $(CFLAGS) $(LDFLAGS) -o $@ $< --static -L. -llrs |
|---|
| | 56 | |
|---|
| | 57 | decompress-bitmap: decompress-bitmap.o $(OBJ) |
|---|
| | 58 | cc $(CFLAGS) $(LDFLAGS) -o $@ $< -L. -llrs -lnewt |
|---|
| | 59 | |
|---|
| | 60 | image_e2fs.o: image_e2fs.c compress.h compress-loop.h config.h |
|---|
| | 61 | cc $(CFLAGS) -o image_e2fs.o -c image_e2fs.c -I./e2fsprogs-1.22/lib |
|---|
| | 62 | |
|---|
| | 63 | liblrs.so.1: $(LIBOBJ) |
|---|
| | 64 | gcc -shared -Wl,-soname,liblrs.so.1 -o liblrs.so.1 $^ $(ZLIBOBJ) |
|---|