freebsd-ports/x11/yeahconsole/files/patch-Makefile
Alexey Dokuchaev 488f366be5 - Clean up patch, honor LOCALBASE, CC, CFLAGS; add LICENSE, stagify
- Install README file (useful documentation, also acts as changelog)
- Provide better COMMENT and port description (courtesy of OpenBSD)
2013-11-09 15:27:25 +00:00

33 lines
810 B
Text

--- Makefile.orig 2006-01-14 18:54:05.000000000 +0300
+++ Makefile 2008-04-30 12:23:01.000000000 +0400
@@ -1,24 +1,23 @@
TARGET = yeahconsole
-CC = gcc
+CC ?= gcc
#CC = cc
INSTALL = install
PREFIX = /usr/local
LIBS = -lX11
-INCLUDES = -I/usr/X11R6/include
-LIB_DIRS = -L/usr/X11R6/lib
-FLAGS = -Os -Wall
+INCLUDES = -I$(LOCALBASE)/include
+LIB_DIRS = -L$(LOCALBASE)/lib
+CFLAGS ?= -Os -Wall
OBJECTS := yeahconsole.o
SOURCES := yeahconsole.c
$(TARGET): $(OBJECTS)
- $(CC) $(DEFINES) $(INCLUDES) $(LIB_DIRS) $(LIBS) -o $@ $<
- strip $@
+ $(CC) $(DEFINES) $(INCLUDES) $(LIB_DIRS) $(LIBS) -o $@ $>
$(OBJECTS): $(SOURCES)
- $(CC) $(FLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $<
+ $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $<
clean:
rm -rf $(TARGET) $(OBJECTS)