File: Makefile

package info (click to toggle)
catsboot 0.2.2
  • links: PTS
  • area: main
  • in suites: potato, woody
  • size: 32 kB
  • ctags: 18
  • sloc: ansic: 150; asm: 117; makefile: 46
file content (19 lines) | stat: -rw-r--r-- 373 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CFLAGS = -Wall -O

all: catsboot catsglue.bin

catsglue.bin: catsglue
	objcopy $< -O binary $@

catsglue: catsglue.o
	ld -o $@ $<

clean:
	rm -f catsboot catsglue catsglue.bin catsglue.o

install:
	strip catsboot
	install -d $(DESTDIR)/usr/lib/catsboot
	install -d $(DESTDIR)/usr/sbin
	install catsglue.bin $(DESTDIR)/usr/lib/catsboot
	install catsboot $(DESTDIR)/usr/sbin