summaryrefslogtreecommitdiff
path: root/Makefile
blob: 92f2b9857a4e772e77c705df426b404eea661c08 (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
#
# IRBOX, an Ivy driver for infra-red remote controls
#
# Copyright 1998-1999 
# Centre d'Etudes de la Navigation Aerienne
#
# Makefile
#
# $Id$
#

SHELL = /bin/sh
CC = gcc

SRCS = irdev.c irtable.c irman.c 
OBJS =  irdev.o irtable.o  lex.yy.o y.tab.o irman.o

CDEFS = 
COPTS =  -g -Wall
CINCS = 
CFLAGS = $(CDEBUGFLAGS) $(CDEFS) $(COPTS) $(CINCS)

all:	irman

irman:	$(OBJS)
	$(CC) $(CFLAGS) -o irbox $(OBJS) -L../IVY_C/src -livy 

irdev.o: irdev.h

irbox.o: irdev.h

y.tab.h y.tab.c: gram.y
	yacc -d gram.y

lex.yy.c: gram.l
	lex gram.l

lex.yy.o: lex.yy.c y.tab.h

clean:
	-/bin/rm -f *.a *.o *.out *.bak *.yy.* *.tab.* *.log irbox