File: Makefile

package info (click to toggle)
xosview 1.8.3%2Bdebian-21
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,488 kB
  • ctags: 2,103
  • sloc: cpp: 9,983; sh: 2,429; ansic: 400; makefile: 92; awk: 20
file content (45 lines) | stat: -rw-r--r-- 898 bytes parent folder | download | duplicates (4)
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
44
45
#
# Linux memstat Makefile template
#
#
# $Id$
#
CC     = gcc
# For some reason (which I am not sure of now), /usr/src/linux/include
# needs to be added to the search patch or things break.
CFLAGS = -D__KERNEL__ -Wall -Wstrict-prototypes -I/usr/src/linux/include \
         -O2 -fomit-frame-pointer -pipe -DMODULE  
FEXT   = c


OBJS = \
memstat.o

DEPFILES := $(OBJS:%=.%.d)
CFILES := $(OBJS:.o=.$(FEXT))

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

all: memstat.o

#Memstat.o: memstat.o
#	ld -m elf_i386 -r -o Memstat.o memstat.o

clean :
	rm -f $(DEPFILES) $(EXE) $(OBJS) *~ TAGS Memstat.o

tags TAGS :
	etags $(CFILES) *.h

%.o : %-2.6.$(FEXT)
	$(CC) $(CFLAGS) -c $< -o $@

%.o : %.$(FEXT)
	$(CC) $(CFLAGS) -c $< -o $@

.%.o.d : %.$(FEXT)
	@echo building dependencies for $<
	@$(SHELL) -ec '$(CC) -MM $(CFLAGS) $< \
          | sed '\''s/$*.o/$*.o $@/'\'' > $@'