File: Makefile

package info (click to toggle)
linux32 1-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 36 kB
  • ctags: 12
  • sloc: makefile: 55; ansic: 42
file content (22 lines) | stat: -rw-r--r-- 528 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
TARGET = linux32
SOURCES = linux32.c
CFLAGS = -g -Wall -O2
INSTALL = install

INSTDIR = /usr/bin
MANDIR = /usr/share/man/man1
all: $(TARGET)

$(TARGET): $(SOURCES)
	gcc $(CFLAGS) -o $@ $(SOURCES)

install: $(TARGET) $(DESTDIR) 
	$(INSTALL) -m 755 -d $(DESTDIR)$(INSTDIR)
	$(INSTALL) -m 755 $(TARGET) $(DESTDIR)$(INSTDIR)
	$(INSTALL) -m 755 -d $(DESTDIR)$(MANDIR)
	$(INSTALL) -m 644 linux32.1 $(DESTDIR)$(MANDIR)
	ln -s linux32 $(DESTDIR)$(INSTDIR)/linux64
	ln -s linux32.1 $(DESTDIR)$(MANDIR)/linux64.1

clean:
	rm -f $(TARGET)