initial version
This commit is contained in:
28
Makefile
Normal file
28
Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
SHELL := /bin/bash
|
||||
#CFLAGS := -w -O3
|
||||
CFLAGS := -w -g -pg -DDEBUG
|
||||
TIME := \time -f "\ttime: %E real, %U user, %S sys\n\tcontext-switch:\t%c+%w, page-faults: %F+%R\n"
|
||||
export PATH := .:$(PATH)
|
||||
|
||||
TARGETS=lceb tree oper stack eval
|
||||
INCLUDES=lceb.h
|
||||
OBJS=$(TARGETS:=.o)
|
||||
|
||||
.PHONY: all clean stack eval
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
lceb: $(OBJS)
|
||||
|
||||
tree: tree.c lceb.h
|
||||
$(CC) $(CFLAGS) -DSTANDALONE -o $@ $?
|
||||
oper: oper.c lceb.h
|
||||
$(CC) $(CFLAGS) -DSTANDALONE -o $@ $?
|
||||
|
||||
ex2: ex2-c
|
||||
@$(TIME) ex2-c < $(INPUT)
|
||||
|
||||
%.o: %.c $(INCLUDES)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGETS) $(OBJS) core
|
Reference in New Issue
Block a user