source: trunk/minix/servers/init/Makefile@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 665 bytes
RevLine 
[9]1# Makefile for the init program (INIT)
2SERVER = init
3
4# directories
5u = /usr
6i = $u/include
7s = $i/sys
8h = $i/minix
9k = $u/src/kernel
10
11# programs, flags, etc.
12CC = exec cc
13CFLAGS = -I$i -O -D_MINIX -D_POSIX_SOURCE
14LDFLAGS = -i
15
16OBJ = init.o
17
18# build local binary
19all build: $(SERVER)
20$(SERVER): $(OBJ)
21 $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $(OBJ) -lsysutil
22 install -S 192w $@
23
24# install with other servers
25install: /usr/sbin/$(SERVER)
26/usr/sbin/$(SERVER): $(SERVER)
27 install -o root -cs $? $@
28
29# clean up local files
30clean:
31 rm -f $(SERVER) *.o *.bak
32
33depend:
34 /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
35
36# Include generated dependencies.
37include .depend
38
Note: See TracBrowser for help on using the repository browser.