blob: 5fc6601b9ad55b1a0408de49081ad51a2e7d1897 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#
# makefile - simple makefile for the Lexmark 2050 color driver
#
# Copyright 2000-2007, Marco Nenciarini
# Copyright 1999, Christian Kornblum
#
# License: GPL (GNU Public License)
#
# Important compiler and linker options
CC=gcc
LD=gcc
CFLAGS+=-g -O2
LDFLAGS+=-g -O2
# Required libraries
LDLIBS=
# Source files and modules
SRC=c2050.c
SHAREDHEADER=
MOD=$(SRC:.c=.o)
# Standard production rule
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
# make all
all: c2050
# linking the modules
c2050: $(MOD)
$(LD) $(LDFLAGS) $(LDLIBS) -o $@ $(MOD)
# dependencies, here a shared header
$(SRC): $(SHAREDHEADER)
# clear up the mess to start over
clean:
rm -f *.o *~ core c2050
#install the driver
install: all
install -m 0755 c2050 $(DESTDIR)/usr/bin
install -m 0755 ps2lexmark $(DESTDIR)/usr/bin
install -m 0755 c2050.1 $(DESTDIR)/usr/share/man/man1/
install -m 0755 ps2lexmark.1 $(DESTDIR)/usr/share/man/man1/
|