summaryrefslogtreecommitdiff
path: root/packages/squashfs-tools/files/Makefile-2.2.patch
blob: 7a16129bbceafe5b91a8305a9cc3e36ad30e513a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- squashfs-tools/Makefile.orig	2005-10-26 18:15:43.641623000 +0100
+++ squashfs-tools/Makefile	2005-10-26 18:21:29.747253250 +0100
@@ -1,12 +1,17 @@
 INCLUDEDIR = .
+CFLAGS_R = -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+LIBS = -lz
 
 CFLAGS := -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -g
 
 mksquashfs: mksquashfs.o read_fs.o sort.o
-	$(CC) mksquashfs.o read_fs.o sort.o -lz -o $@
+	$(CC) $(LDFLAGS) mksquashfs.o read_fs.o sort.o -lz -o $@
 
 mksquashfs.o: mksquashfs.c mksquashfs.h
+	$(CC) $(CFLAGS_R) $(CFLAGS) -c -o mksquashfs.o mksquashfs.c
 
 read_fs.o: read_fs.c read_fs.h
+	$(CC) $(CFLAGS_R) $(CFLAGS) -c -o read_fs.o read_fs.c
 
 sort.o: sort.c
+	$(CC) $(CFLAGS_R) $(CFLAGS) -c -o sort.o sort.c