source: trunk/minix/drivers/printer/Makefile@ 9

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

Minix 3.1.2a

File size: 698 bytes
Line 
1# Makefile for Centronics printer driver (PRINTER)
2DRIVER = printer
3
4# directories
5u = /usr
6i = $u/include
7s = $i/sys
8m = $i/minix
9b = $i/ibm
10d = ..
11
12# programs, flags, etc.
13CC = exec cc
14CFLAGS = -I$i
15LDFLAGS = -i
16LIBS = -lsys -lsysutil
17
18OBJ = printer.o
19
20# build local binary
21all build: $(DRIVER)
22$(DRIVER): $(OBJ)
23 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
24# install -S 64w $(DRIVER)
25
26# install with other drivers
27install: /usr/sbin/$(DRIVER)
28/usr/sbin/$(DRIVER): $(DRIVER)
29 install -o root -c $? $@
30# install -o root -cs $? $@
31
32# clean up local files
33clean:
34 rm -f *.o *.bak $(DRIVER)
35
36depend:
37 /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
38
39# Include generated dependencies.
40include .depend
41
Note: See TracBrowser for help on using the repository browser.