File: Makefile

package info (click to toggle)
linuxlogo 6.01-0.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,104 kB
  • sloc: ansic: 4,604; sh: 380; makefile: 302; perl: 7
file content (22 lines) | stat: -rw-r--r-- 530 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CC = gcc
CFLAGS = -Wall -O2 
LFLAGS =

LIBSYSINFO = libsysinfo-0.2.2

all:	memory_print memory_method

memory_print:	memory_print.o
	$(CC) $(LFLAGS) -o memory_print memory_print.o

memory_print.o:	memory_print.c
	$(CC) $(CFLAGS) -c memory_print.c
	
memory_method:	memory_method.o ../$(LIBSYSINFO)/libsysinfo.a
	$(CC) $(LFLAGS) -o memory_method memory_method.o ../$(LIBSYSINFO)/libsysinfo.a

memory_method.o:	memory_method.c
	$(CC) $(CFLAGS) -I../$(LIBSYSINFO) -c memory_method.c	

clean:	
	rm -f *~ *.o memory_print memory_method