Skip to content

Commit

Permalink
Merge pull request #7 from sterin/master
Browse files Browse the repository at this point in the history
Makefile: add support for ABC_USE_STDINT_H
  • Loading branch information
sterin authored Mar 30, 2018
2 parents 4a39f32 + 9c78efb commit 1fc200f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ $(ARCHFLAGS_EXE) : arch_flags.c

INCLUDES += -I$(ABCSRC)/src

ARCHFLAGS ?= $(shell $(CC) $(ABCSRC)/arch_flags.c -o $(ARCHFLAGS_EXE) && $(ARCHFLAGS_EXE))
# Use C99 stdint.h header for platform-dependent types
ifdef ABC_USE_STDINT_H
ARCHFLAGS ?= -DABC_USE_STDINT_H=1
else
ARCHFLAGS ?= $(shell $(CC) $(ABCSRC)/arch_flags.c -o $(ARCHFLAGS_EXE) && $(ARCHFLAGS_EXE))
endif

ARCHFLAGS := $(ARCHFLAGS)

OPTFLAGS ?= -g -O
Expand Down

0 comments on commit 1fc200f

Please sign in to comment.