File: makerules

package info (click to toggle)
powder 117-2
  • links: PTS
  • area: non-free
  • in suites: stretch
  • size: 10,576 kB
  • ctags: 3,545
  • sloc: cpp: 55,002; makefile: 541; sh: 258; objc: 245; ansic: 107; csh: 54
file content (15 lines) | stat: -rw-r--r-- 231 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ifeq ($(CXXFLAGS),)
    CXXFLAGS=-O3
endif

.cpp.o:
	$(CXX) -I . -DLINUX -c $< -o $@ $(CXXFLAGS)

all: $(TARGET)

$(TARGET): $(OFILES)
	$(CXX) -o $(TARGET) $(OFILES) $(CXXFLAGS) $(LDFLAGS)

clean:
	$(RM) $(OFILES)
	$(RM) $(TARGET)