Skip to content

Commit

Permalink
Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ccanel committed Apr 24, 2024
1 parent 7600639 commit 4c356b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ratemon/runtime/new/client_server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ OUTPUT = .output
CC = gcc
CXX = g++
CFLAGS = -g -std=c17 -Wall -Wextra
CXXFLAGS = -g -std=c++17 -Wall -Wextra
CXXFLAGS = -g -std=c++20 -Wall -Wextra
DEPS = common.h
APPS = client server
INTERPS = libinterptest libinterptest_cpp
Expand All @@ -11,7 +11,7 @@ INTERPS = libinterptest libinterptest_cpp
all: $(APPS) $(INTERPS)

$(OUTPUT):
mkdir -p $(@)
mkdir -p $@

$(OUTPUT)/%.o: %.c $(DEPS) | $(OUTPUT)
$(CC) $(CFLAGS) -c -o $@ $<
Expand All @@ -33,6 +33,9 @@ interp_server : server $(OUTPUT)/libinterptest.so
interp_server_cpp : server $(OUTPUT)/libinterptest_cpp.so
LD_PRELOAD=$(OUTPUT)/libinterptest_cpp.so ./server

run_server: server
./server

run_client: client
./client

Expand Down

0 comments on commit 4c356b2

Please sign in to comment.