File: Makefile

package info (click to toggle)
ncps 0.510-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 172 kB
  • ctags: 133
  • sloc: ansic: 1,838; makefile: 63
file content (36 lines) | stat: -rw-r--r-- 838 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
35
36
OBJECTS = escape.o tree.o proc.o  gui.o ncps.o
LIBPROC = /usr/lib
LIBPROC_INC = /usr/include/proc

#likewise for ncurses if your libncurses isn't in standard lib locations
NCURSES = /usr/lib
NCURSES_INC = /usr/include

INC= -I$(LIBPROC_INC) -I$(NCURSES_INC)

LIBS = -L$(LIBPROC) -L$(NCURSES) -lm -lproc -lncurses

all: ncps


ncps: $(OBJECTS)
	gcc -o ncps $(OBJECTS) -g $(INC) -lncurses -lproc -lm -Wall -pedantic -ggdb

tree.o: tree.c tree.h base.h
	gcc -Wall -pedantic -c tree.c -g $(INC)

escape.o: escape.c
	gcc -Wall -pedantic -c escape.c -g $(INC)

gui.o: gui.c gui.h base.h tree.h proc.h 
	gcc -Wall -pedantic -c gui.c -g $(INC)

proc.o: proc.c proc.h base.h tree.h
	gcc -Wall -pedantic -c proc.c -g $(INC)

ncps.o: ncps.c ncps.h base.h tree.h proc.h gui.h
	gcc -Wall -pedantic -c ncps.c -g $(INC)

clean:
	rm -f ncps *.o *~ core