Skip to content

Commit

Permalink
Fix quoting in zlib makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed Mar 7, 2019
1 parent fdfdf1f commit a7f9a17
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 95 deletions.
48 changes: 24 additions & 24 deletions etc/c/zlib/linux.mak
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ LDFLAGS=
O=.o

.c.o:
$(CC) -c $(CFLAGS) $*
"$(CC)" -c $(CFLAGS) $*

.d.o:
$(DMD) -c $(DFLAGS) $*
"$(DMD)" -c $(DFLAGS) $*

# variables
OBJS = adler32$(O) compress$(O) crc32$(O) deflate$(O) gzclose$(O) gzlib$(O) gzread$(O) \
Expand All @@ -20,76 +20,76 @@ OBJS = adler32$(O) compress$(O) crc32$(O) deflate$(O) gzclose$(O) gzlib$(O) gzre
all: zlib.a example minigzip

adler32.o: zutil.h zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

zutil.o: zutil.h zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

gzclose.o: zlib.h zconf.h gzguts.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

gzlib.o: zlib.h zconf.h gzguts.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

gzread.o: zlib.h zconf.h gzguts.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

gzwrite.o: zlib.h zconf.h gzguts.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

compress.o: zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

example.o: zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

minigzip.o: zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

uncompr.o: zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

crc32.o: zutil.h zlib.h zconf.h crc32.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

deflate.o: deflate.h zutil.h zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h inffixed.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h inffixed.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

inftrees.o: zutil.h zlib.h zconf.h inftrees.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c


example.o: example.c zlib.h zconf.h
$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
"$(CC)" -c $(cvarsdll) $(CFLAGS) $*.c

minigzip.o: minigzip.c zlib.h zconf.h
$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
"$(CC)" -c $(cvarsdll) $(CFLAGS) $*.c

zlib.a: $(OBJS)
ar -r $@ $(OBJS)

example: example.o zlib.a
$(CC) $(CFLAGS) -o $@ example.o zlib.a -g
"$(CC)" $(CFLAGS) -o $@ example.o zlib.a -g

minigzip: minigzip.o zlib.a
$(CC) $(CFLAGS) -o $@ minigzip.o zlib.a -g
"$(CC)" $(CFLAGS) -o $@ minigzip.o zlib.a -g

test: example minigzip
./example
echo hello world | minigzip | minigzip -d

clean:
$(RM) $(OBJS) zlib.a example.o example minigzip minigzip.o test foo.gz
"$(RM)" $(OBJS) zlib.a example.o example minigzip minigzip.o test foo.gz

48 changes: 24 additions & 24 deletions etc/c/zlib/osx.mak
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ LDFLAGS=
O=.o

.c.o:
$(CC) -c $(CFLAGS) $*
"$(CC)" -c $(CFLAGS) $*

.d.o:
$(DMD) -c $(DFLAGS) $*
"$(DMD)" -c $(DFLAGS) $*

# variables
OBJS = adler32$(O) compress$(O) crc32$(O) deflate$(O) gzclose$(O) gzlib$(O) gzread$(O) \
Expand All @@ -20,76 +20,76 @@ OBJS = adler32$(O) compress$(O) crc32$(O) deflate$(O) gzclose$(O) gzlib$(O) gzre
all: zlib.a example minigzip

adler32.o: zutil.h zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

zutil.o: zutil.h zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

gzclose.o: zlib.h zconf.h gzguts.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

gzlib.o: zlib.h zconf.h gzguts.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

gzread.o: zlib.h zconf.h gzguts.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

gzwrite.o: zlib.h zconf.h gzguts.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

compress.o: zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

example.o: zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

minigzip.o: zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

uncompr.o: zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

crc32.o: zutil.h zlib.h zconf.h crc32.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

deflate.o: deflate.h zutil.h zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h inffixed.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h inffixed.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

inftrees.o: zutil.h zlib.h zconf.h inftrees.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c


example.o: example.c zlib.h zconf.h
$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
"$(CC)" -c $(cvarsdll) $(CFLAGS) $*.c

minigzip.o: minigzip.c zlib.h zconf.h
$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
"$(CC)" -c $(cvarsdll) $(CFLAGS) $*.c

zlib.a: $(OBJS)
ar -r $@ $(OBJS)

example: example.o zlib.a
$(CC) $(CFLAGS) -o $@ example.o zlib.a -g
"$(CC)" $(CFLAGS) -o $@ example.o zlib.a -g

minigzip: minigzip.o zlib.a
$(CC) $(CFLAGS) -o $@ minigzip.o zlib.a -g
"$(CC)" $(CFLAGS) -o $@ minigzip.o zlib.a -g

test: example minigzip
./example
echo hello world | minigzip | minigzip -d

clean:
$(RM) $(OBJS) zlib.a example.o example minigzip minigzip.o test foo.gz
"$(RM)" $(OBJS) zlib.a example.o example minigzip minigzip.o test foo.gz

44 changes: 22 additions & 22 deletions etc/c/zlib/win32.mak
Original file line number Diff line number Diff line change
Expand Up @@ -16,72 +16,72 @@ OBJS = adler32$(O) compress$(O) crc32$(O) deflate$(O) gzclose$(O) gzlib$(O) gzre
all: zlib.lib example.exe minigzip.exe

adler32.obj: zutil.h zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

zutil.obj: zutil.h zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

gzclose.obj: zlib.h zconf.h gzguts.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

gzlib.obj: zlib.h zconf.h gzguts.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

gzread.obj: zlib.h zconf.h gzguts.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

gzwrite.obj: zlib.h zconf.h gzguts.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

compress.obj: zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

example.obj: zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

minigzip.obj: zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

uncompr.obj: zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

crc32.obj: zutil.h zlib.h zconf.h crc32.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

deflate.obj: deflate.h zutil.h zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

infback.obj: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h inffixed.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

inflate.obj: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h inffixed.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

inffast.obj: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

inftrees.obj: zutil.h zlib.h zconf.h inftrees.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c

trees.obj: deflate.h zutil.h zlib.h zconf.h trees.h
$(CC) -c $(CFLAGS) $*.c
"$(CC)" -c $(CFLAGS) $*.c



example.obj: example.c zlib.h zconf.h
$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
"$(CC)" -c $(cvarsdll) $(CFLAGS) $*.c

minigzip.obj: minigzip.c zlib.h zconf.h
$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
"$(CC)" -c $(cvarsdll) $(CFLAGS) $*.c

zlib.lib: $(OBJS)
$(LIB) -c zlib.lib $(OBJS)
"$(LIB)" -c zlib.lib $(OBJS)

example.exe: example.obj zlib.lib
$(LD) $(LDFLAGS) example.obj zlib.lib
"$(LD)" $(LDFLAGS) example.obj zlib.lib

minigzip.exe: minigzip.obj zlib.lib
$(LD) $(LDFLAGS) minigzip.obj zlib.lib
"$(LD)" $(LDFLAGS) minigzip.obj zlib.lib

test: example.exe minigzip.exe
example
Expand Down
Loading

0 comments on commit a7f9a17

Please sign in to comment.