source:
src/SynTree/Makefile@
1cc4390
| Last change on this file since 1cc4390 was 843054c2, checked in by , 11 years ago | |
|---|---|
|
|
| File size: 445 bytes | |
| Line | |
|---|---|
| 1 | CXX=g++ |
| 2 | CXXFLAGS=-g -Wall #-Wno-unused |
| 3 | |
| 4 | SRCS:=Type.cc Constant.cc Expression.cc Statement.cc CodeGenVisitor.cc |
| 5 | OBJECTS:=$(SRCS:.cc=.o) |
| 6 | DEPS:=$(SRCS:.cc=.d) |
| 7 | |
| 8 | # libSynTree.a: $(OBJECTS) |
| 9 | # ar -rs $@ $(OBJECTS) |
| 10 | # $(CXX) $(CXXFLAGS) $(OBJS) -o $@ $(EXTRALIBS) |
| 11 | |
| 12 | %.d: %.cc |
| 13 | g++ -M $(CXXFLAGS) $< | sed -e '1s/^\(.*\)\.o/\1.d \1.o/' > $@ |
| 14 | |
| 15 | all: $(OBJECTS) |
| 16 | |
| 17 | ifneq ($(MAKECMDGOALS),clean) |
| 18 | include $(DEPS) |
| 19 | endif |
| 20 | |
| 21 | clean: |
| 22 | rm -f cfa $(OBJECTS) $(DEPS) core |
Note:
See TracBrowser
for help on using the repository browser.