File: Makefile

package info (click to toggle)
wmgtemp 1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 320 kB
  • ctags: 335
  • sloc: ansic: 1,488; makefile: 48
file content (34 lines) | stat: -rw-r--r-- 635 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
25
26
27
28
29
30
31
32
33
34
CC      = gcc
INSTALL = /usr/bin/install
LIB     = lib
LDFLAGS = -L/usr/X11R6/$(LIB)
LIBS    = -lXpm -lXext -lX11 -lsensors
BINARY  = wmgtemp
CFLAGS = -Wall -g
INSTDIR = /usr/local/bin

OFILES  = wmgtemp.o \
	./wmgeneral/wmgeneral.o \
	./wmgeneral/misc.o \
	./wmgeneral/list.o

%.o:
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c -o $*.o

$(BINARY): $(OFILES)
	$(CC) $(OFILES) $(LDFLAGS) -o $(BINARY) $(LIBS)

clean:
	@ $(RM) $(OFILES) *~ "#"* $(BINARY)

install::
	$(INSTALL) -d $(DESTDIR)$(INSTDIR)
	$(INSTALL) -m 755 -c $(BINARY) $(DESTDIR)$(INSTDIR)/$(BINARY)

depend:
	@ $(CC) -MM *.c > .deps

count:
	@ wc -l *.c *.h | sort

include .deps