File: no_xmkmf_makefile

package info (click to toggle)
lwm 1.2.1-1.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 244 kB
  • ctags: 342
  • sloc: ansic: 3,409; makefile: 40
file content (43 lines) | stat: -rw-r--r-- 1,063 bytes parent folder | download | duplicates (2)
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
#	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

DEFINES = 

# Bennett Todd (bet@lehman.com) 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 -SM

# -----------------------------------------------------------------------------

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