12345678910111213141516171819202122 |
- CC=gcc
- CXX=g++
- CFLAGS=-g3 -I. -Wall -Wextra
- all : plainc objectivecpp customoo
- .PHONY : all
- %.o: %.c $(DEPS)
- $(CC) -c -o $@ $< $(CFLAGS)
- %.o: %.cpp $(DEPS)
- $(CXX) -std=c++11 -c -o $@ $< $(CFLAGS)
- plainc: plainc.o
- $(CC) -o plainc plainc.o $(CFLAGS) -lreadline
- objectivecpp: objectivecpp.o
- $(CXX) -o objectivecpp objectivecpp.o $(CFLAGS) -lreadline
- customoo: customoo.o
- $(CXX) -o customoo customoo.o $(CFLAGS) -lreadline
|