blob: 80961ab40a04850e02f5edd473f6389365f16780 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
--- a/Makefile
+++ b/Makefile
@@ -2,30 +2,16 @@
# Makefile automatically generated by genmake 1.0, Mar-16-97
# genmake 1.0 by ma_muquit@fccc.edu, RCS
##
-CC= cc
DEFS=
PROGNAME= grabc
-LIBS= -L/usr/X11R6/lib -lX11
+LDLIBS= $(shell $(PKG_CONFIG) --libs x11)
INCLUDES= -I.
-# replace -O with -g in order to debug
-DEFINES= $(INCLUDES) $(DEFS) -D__USE_FIXED_PROTOTYPES__ -DSYS_UNIX=1
-CFLAGS= -O $(DEFINES)
-
-SRCS = grabc.c
-
-OBJS = grabc.o
-
-.c.o:
- rm -f $@
- $(CC) $(CFLAGS) -c $*.c
+CPPFLAGS += $(INCLUDES) $(DEFS) -D__USE_FIXED_PROTOTYPES__ -DSYS_UNIX=1
all: $(PROGNAME)
-$(PROGNAME) : $(OBJS)
- $(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS)
-
clean:
rm -f $(OBJS) $(PROGNAME) core
|