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.
gentoo-overlay/games-misc/bsod/files/bsod-0.1-Makefile.patch

22 lines
464 B

--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,15 @@
VERSION=0.1
DEBUG=-g -pedantic #-pg #-fprofile-arcs
-LDFLAGS=-lncurses $(DEBUG)
-CFLAGS+=-O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG)
+LDLIBS=$(shell ${PKG_CONFIG} --libs ncurses)
+CFLAGS+=-Wall -DVERSION=\"$(VERSION)\"
OBJS=bsod.o
all: bsod
bsod: $(OBJS)
- $(CC) -Wall $(OBJS) $(LDFLAGS) -o bsod
+ $(CC) $(LDFLAGS) $(CFLAGS) $(OBJS) $(LDLIBS) -o bsod
install: bsod
cp bsod $(DESTDIR)/usr/local/bin