New .o rules
This commit is contained in:
16
Makefile
16
Makefile
@@ -2,18 +2,20 @@ FIRE_CXX ?= clang++
|
|||||||
FIRE_CXXFLAGS ?= -O3 -std=gnu++2a -Wall -Werror
|
FIRE_CXXFLAGS ?= -O3 -std=gnu++2a -Wall -Werror
|
||||||
FIRE_LDLIBS ?= -lgflags -lglog -lpthread
|
FIRE_LDLIBS ?= -lgflags -lglog -lpthread
|
||||||
|
|
||||||
all: firesse.a example_clock
|
all: firesse.a firesse.o example_clock
|
||||||
|
|
||||||
objects = firesse.o stream.o
|
objects = server.o stream.o
|
||||||
|
|
||||||
_firecgi:
|
firecgi/firecgi.o:
|
||||||
$(MAKE) --directory=firecgi
|
$(MAKE) --directory=firecgi
|
||||||
|
|
||||||
firesse.a: $(objects) _firecgi
|
firesse.a: $(objects)
|
||||||
ar x firecgi/firecgi.a
|
ar rcs $@ $^
|
||||||
ar rcs $@ $(objects) $(shell ar t firecgi/firecgi.a)
|
|
||||||
|
|
||||||
example_clock: example_clock.o firesse.a
|
firesse.o: $(objects) firecgi/firecgi.o
|
||||||
|
ld --relocatable --output=$@ $+
|
||||||
|
|
||||||
|
example_clock: example_clock.o firesse.o
|
||||||
$(FIRE_CXX) $(FIRE_CXXFLAGS) -o $@ $+ $(FIRE_LDLIBS)
|
$(FIRE_CXX) $(FIRE_CXXFLAGS) -o $@ $+ $(FIRE_LDLIBS)
|
||||||
|
|
||||||
%.o: %.cc *.h Makefile
|
%.o: %.cc *.h Makefile
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
#include "firesse.h"
|
#include "server.h"
|
||||||
|
|
||||||
DEFINE_int32(port, 9000, "TCP port to bind");
|
DEFINE_int32(port, 9000, "TCP port to bind");
|
||||||
|
|
||||||
|
|||||||
2
firecgi
2
firecgi
Submodule firecgi updated: 90ce269869...1cba4ac1ae
@@ -1,4 +1,4 @@
|
|||||||
#include "firesse.h"
|
#include "server.h"
|
||||||
|
|
||||||
namespace firesse {
|
namespace firesse {
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "firecgi/firecgi.h"
|
#include "firecgi/server.h"
|
||||||
#include "stream.h"
|
#include "stream.h"
|
||||||
|
|
||||||
namespace firesse {
|
namespace firesse {
|
||||||
Reference in New Issue
Block a user