Files
firesse/Makefile

31 lines
705 B
Makefile
Raw Normal View History

2019-05-05 00:11:57 -07:00
FIRE_CXX ?= clang++
FIRE_CXXFLAGS ?= -O3 -std=gnu++2a -Wall -Werror
FIRE_LDLIBS ?= -lgflags -lglog -lpthread
2019-05-07 23:44:55 -07:00
all: firesse.a firesse.o example_clock
2019-05-05 00:11:57 -07:00
2019-05-07 23:44:55 -07:00
objects = server.o stream.o
2019-05-05 00:11:57 -07:00
2019-05-07 23:44:55 -07:00
firecgi/firecgi.o:
2019-05-05 00:11:57 -07:00
$(MAKE) --directory=firecgi
2019-05-07 23:44:55 -07:00
firesse.a: $(objects)
ar rcs $@ $^
2019-05-07 23:44:55 -07:00
firesse.o: $(objects) firecgi/firecgi.o
ld --relocatable --output=$@ $+
example_clock: example_clock.o firesse.o
$(FIRE_CXX) $(FIRE_CXXFLAGS) -o $@ $+ $(FIRE_LDLIBS)
2019-05-05 00:11:57 -07:00
%.o: %.cc *.h Makefile
$(FIRE_CXX) $(FIRE_CXXFLAGS) -c -o $@ $<
clean:
$(MAKE) --directory=firecgi clean
rm --force example_clock *.o *.a
asan:
$(MAKE) clean
FIRE_CXXFLAGS="-O1 -g -fsanitize=address -fno-omit-frame-pointer -std=gnu++2a -Wall -Werror" $(MAKE) all