You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/app-cdr/dumpet/files/dumpet-2.1-flags.patch

26 lines
672 B

--- Makefile
+++ Makefile
@@ -2,17 +2,16 @@
VERSION=2.1
GITVERSION=$(shell [ -d .git ] && git rev-list --abbrev-commit -n 1 HEAD |cut -b 1-8)
-CFLAGS:=-g3 -O2 -Wall -Werror
-LFLAGS:=
-CC:=gcc
+CFLAGS ?= -g3 -O2 -Wall -Werror
+CC ?= gcc
-CFLAGS += $(shell pkg-config --cflags libxml-2.0)
-LFLAGS += -lpopt $(shell pkg-config --libs libxml-2.0)
+CFLAGS += $(shell pkg-config --cflags libxml-2.0 popt)
+LIBS += $(shell pkg-config --libs libxml-2.0 popt)
all : dumpet
dumpet : dumpet.o
- $(CC) $(CFLAGS) -o $@ $^ $(LFLAGS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
dumpet.o : dumpet.c dumpet.h iso9660.h eltorito.h endian.h
$(CC) $(CFLAGS) -c -o $@ $<