File: Makefile

package info (click to toggle)
wmcore 0.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 228 kB
  • ctags: 113
  • sloc: ansic: 805; makefile: 70
file content (24 lines) | stat: -rw-r--r-- 423 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
INSTALL = /usr/bin/install
LIBDIR = -L/usr/X11R6/lib
LIBS   = -lXpm -lXext -lX11
OBJS =  wmcore.o \
		wmgeneral.o \
		misc.o \
		list.o


.c.o:
	cc $(CPPFLAGS) $(CFLAGS) -Wall -c -O3 $< -o $*.o

wmlmon: $(OBJS)
	cc $(LDFLAGS) -Wall -o wmcore $^ $(LIBDIR) $(LIBS)

clean::
	for i in $(OBJS) ; do \
		rm -f $$i;\
	done
	rm -f wmcore
install::
	$(INSTALL) -c wmcore $(DESTDIR)/usr/bin/wmcore
uninstall:
	rm -f /usr/bin/wmcore