File: Makefile

package info (click to toggle)
mudnames 1.6-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 272 kB
  • ctags: 67
  • sloc: ansic: 474; sh: 85; makefile: 67
file content (23 lines) | stat: -rw-r--r-- 521 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
# A real minimal makefile
#CC=gcc
CFLAGS=-Wall -O2 -g0
FILES = main.o names.o server.o
INSTALL = install

mudnames: $(FILES)
	rm -f mudnames
	$(CC) -o mudnames $(FILES) $(CFLAGS)
	strip -s mudnames

clean:
	rm -f *.o mudnames

install:
	$(INSTALL) -m 0755 mudnames $(DESTDIR)/usr/sbin	
	$(INSTALL) -d $(DESTDIR)/usr/share/mudnames/	
	$(INSTALL) -m 0644 data/* $(DESTDIR)/usr/share/mudnames/
	$(INSTALL) -d $(DESTDIR)/etc/default/
	$(INSTALL) -m 0755 debian/mudnames.default $(DESTDIR)/etc/default/mudnames
.o:
	$(CC) $<