Line | |
---|
1 | # Semaphore Server
|
---|
2 | SERVER = ss
|
---|
3 |
|
---|
4 | # programs, flags, etc.
|
---|
5 | CC = exec cc
|
---|
6 | CFLAGS = -I/usr/include
|
---|
7 | LDFLAGS = -i
|
---|
8 | LIBS = -lsys -lsysutil
|
---|
9 |
|
---|
10 | OBJ = main.o semaforo.o
|
---|
11 |
|
---|
12 | # build local binary
|
---|
13 | all build: $(SERVER)
|
---|
14 | $(SERVER): $(OBJ)
|
---|
15 | $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
---|
16 | install -S 16k $@
|
---|
17 |
|
---|
18 | # install with other servers
|
---|
19 | install: $(SERVER)
|
---|
20 | install -o root -c $? /sbin/$(SERVER)
|
---|
21 |
|
---|
22 | # clean up local files
|
---|
23 | clean:
|
---|
24 | rm -f $(SERVER) *.o *.bak
|
---|
25 |
|
---|
26 | depend:
|
---|
27 | /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
---|
28 |
|
---|
29 | # Include generated dependencies.
|
---|
30 | include .depend
|
---|
31 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.