parser/calc/Makefile
changeset 66 2b4f786d9073
parent 39 46d7ec9d63bd
equal deleted inserted replaced
65:76514757b0d6 66:2b4f786d9073
     1 CC=gcc
     1       CC = gcc
     2 LD=ld
     2       LD = ld
     3 YACC=bison -y
     3     YACC = bison -y
     4 FLEX=flex
     4     FLEX = flex
     5 CFLAGS=-Wall -O2 -ansi -D_XOPEN_SOURCE=500
     5   CFLAGS = -Wall -O2 -ansi -D_XOPEN_SOURCE=500
     6 LDFLAGS=
     6  LDFLAGS =
     7 INCLUDE=include
     7  INCLUDE = -Iinclude
     8 OBJECTS=main.o parser.o lexer.o
     8 
     9 TARGET=calc
     9 OBJECTS  = main.o
       
    10 OBJECTS += parser.o
       
    11 OBJECTS += lexer.o
       
    12 
       
    13 TARGET = calc
    10 
    14 
    11 .SUFFIXES: .c .y .l
    15 .SUFFIXES: .c .y .l
    12 
    16 
    13 .c.o:
    17 .c.o:
    14 	$(CC) -c $(CFLAGS) -I$(INCLUDE) $(CONFIG) $<
    18 	$(CC) -c $(CFLAGS) $(INCLUDE) $(CONFIG) $<
    15 
    19 
    16 .y.c:
    20 .y.c:
    17 	$(YACC) -d $< -o $@
    21 	$(YACC) -d $< -o $@
    18 
    22 
    19 .l.c:
    23 .l.c: