-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathno_xmkmf_makefile
48 lines (33 loc) · 1.18 KB
/
no_xmkmf_makefile
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
36
37
38
39
40
41
42
43
44
45
46
47
48
# Sample Makefile for lwm.
# You ought to be using the Imakefile (xmkmf;make) but
# if Imake isn't set up properly on your system, this might
# help you out. I used to use it on an SGI.
# Uncomment these lines to use gcc.
#CC = gcc
#CFLAGS = -ansi -pedantic -Wall -DSHAPE
# Uncomment these lines to use SGI cc.
#CC = cc
#CFLAGS = -fullwarn -g -DSHAPE
# Uncomment these for Solaris Sun Studio, choose your architecture.
#CC = cc
#CFLAGS = -Xa -fast -xarch=v8a
#CFLAGS = -Xa -fast -xarch=386
DEFINES =
# Bennett Todd ([email protected]) says this helped him compile on
# Solaris 2.5.1, avoiding a problem with <sys/signal.h>.
#DEFINES = -D_POSIX_C_SOURCE=2
# Add any strange libraries your system needs here.
LDFLAGS = -lXext -lX11 -lICE -lSM
# -----------------------------------------------------------------------------
OFILES = client.o cursor.o disp.o error.o ewmh.o lwm.o manage.o mouse.o \
resource.o session.o shape.o
HFILES = lwm.h ewmh.h
# -----------------------------------------------------------------------------
all: lwm
lwm: $(OFILES)
$(CC) $(CFLAGS) $(DEFINES) -o lwm $(OFILES) $(LDFLAGS)
install: lwm
cp lwm /usr/local/bin
$(OFILES): $(HFILES)
clean:
rm -f lwm *.o core