File: Makefile

package info (click to toggle)
effectv 0.3.11-1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 748 kB
  • ctags: 1,316
  • sloc: ansic: 12,575; makefile: 216; perl: 38
file content (35 lines) | stat: -rw-r--r-- 655 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
# Makefile for EffecTV/tools

include ../config.mk

CC = gcc
NASM = nasm
INSTALL = /usr/bin/install -c

CFLAGS = $(CONFIG) $(CONFIG.arch) $(CFLAGS.opt)
LIBS =

V4L_CFLAGS = -I../v4lutils
V4L_LIBS = ../v4lutils/libv4lutils.a -lpthread

%.o: %.c
	$(CC) $(CFLAGS) -Wall -c -o $@ $<
%.o: %.nas
	$(NASM) -f elf $<

all-recursive:
	@list='$(SUBDIRS)'; for subdir in $$list; do \
	(cd $$subdir && $(MAKE) all-recursive) || exit 1;\
	done; \
	$(MAKE) all-am

all-am: palettecheck

palettecheck: palettecheck.o
	$(CC) -o $@ palettecheck.o $(V4L_LIBS)

palettecheck.o: palettecheck.c
	$(CC) $(CFLAGS) $(V4L_CFLAGS) -Wall -c -o $@ $<

clean:
	rm -f *.o palettecheck