forked from shinyquagsire23/moooooooo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (31 loc) · 751 Bytes
/
Makefile
File metadata and controls
34 lines (31 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Sources
SRC_DIR = . mmio
OBJS = $(foreach dir,$(SRC_DIR),$(subst .c,.o,$(wildcard $(dir)/*.c))) $(foreach dir,$(SRC_DIR),$(subst .cpp,.o,$(wildcard $(dir)/*.cpp)))
# Compiler Settings
OUTPUT = mooooooo
CXXFLAGS = -Wall -g -I. -Iunicorn/include -std=c++17
CFLAGS = -I. -Iunicorn/include -std=gnu11
LIBS = -pthread unicorn/libunicorn.a -lstdc++fs
CC = gcc
CXX = g++
ifeq ($(OS),Windows_NT)
#Windows Build CFG
CFLAGS +=
LIBS +=
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
# OS X
CFLAGS +=
LIBS +=
else
# Linux
CFLAGS +=
CXXFLAGS +=
LIBS +=
endif
endif
main: $(OBJS)
$(CXX) -o $(OUTPUT) $(OBJS) $(LIBS)
clean:
rm -rf $(OUTPUT) $(OUTPUT).exe $(OBJS)