Skip to content

Commit

Permalink
Merge pull request #105 from dasm-assembler/feature/build-for-mac-leo…
Browse files Browse the repository at this point in the history
…pard

Feature/build for mac leopard
  • Loading branch information
dionoid authored Oct 28, 2020
2 parents 1b75e89 + 0283480 commit 808d5a0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ GWARN= -ansi -std=c99 -pedantic -Wall \
#CFLAGS= $(GOPTI) $(GWARN) $(GDEBG)
#LDFLAGS= -m32 -L/usr/lib32

ifeq ($(OS),Windows_NT)
detected_OS := Windows
else
detected_OS := $(shell uname -s)
ifeq ($(detected_OS),Darwin)
CFLAGS = -mmacosx-version-min=10.5
endif
endif

#CC= gcc

OBJS= main.o ops.o globals.o exp.o symbols.o \
Expand All @@ -56,10 +65,11 @@ SRCS= main.c ops.c globals.c exp.c symbols.c \

ALL= dasm ftohex

all: $(ALL)
all: $(info detected_OS is $(detected_OS)) \
$(ALL)

dasm: $(OBJS)
$(CC) $(OBJS) -o dasm $(LDFLAGS)
$(CC) $(CFLAGS) $(OBJS) -o dasm $(LDFLAGS)

ftohex: ftohex.o

Expand Down

0 comments on commit 808d5a0

Please sign in to comment.