blob: 0482878d679786e4e5962c3dbe12319da910f193 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--- Makefile.orig 2017-09-27 07:10:05 UTC
+++ Makefile
@@ -2,6 +2,10 @@ ifneq ($(findstring Windows,$(OS)),)
CL=cl.exe
CFLAGS=/O2 /D_CRT_SECURE_NO_WARNINGS
JATTACH_EXE=jattach.exe
+else
+ UNAME_S := $(shell uname -s)
+ifneq ($(findstring FreeBSD,$(UNAME_S)),)
+ JATTACH_EXE=jattach
else
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
RPM_ROOT=$(ROOT_DIR)/build/rpm
@@ -10,6 +14,7 @@ else
CC=gcc
CFLAGS=-O2
JATTACH_EXE=jattach
+endif
endif
all: build build/$(JATTACH_EXE)
|