File: Makefile

package info (click to toggle)
c2050 0.3b-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 144 kB
  • sloc: ansic: 280; makefile: 55; sh: 14; python: 8
file content (47 lines) | stat: -rw-r--r-- 914 bytes parent folder | download | duplicates (3)
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/