Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka authored Nov 30, 2023
1 parent c839d3a commit 14ada9c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions native/Radar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ CC = gcc
SHARED_DIR = ../shared
C_FLAGS = -Wall -O3 -fPIC

PLATFORM := $(shell uname)
ifeq ($(PLATFORM),Linux)
EXT = so
else
EXT = dll
endif

all:
$(CC) $(C_FLAGS) -o bin/moeaframework.o -c $(SHARED_DIR)/moeaframework.c
ld -G bin/moeaframework.o -o bin/libmoeaframework.so
rm bin/moeaframework.o

$(CC) $(C_FLAGS) -shared -o bin/moeaframework.$(EXT) -c $(SHARED_DIR)/moeaframework.c

0 comments on commit 14ada9c

Please sign in to comment.