-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #1104: Rename some of the binaries.
Not sure how to adjust the vcproj files - the binary name appears to be implied somehow
- Loading branch information
Showing
14 changed files
with
269 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,63 @@ | ||
#----------------------------------------------------------------------------- | ||
# zcpp - C89 preprocessor for sccz80 (unused) | ||
#----------------------------------------------------------------------------- | ||
PROJ := z88dk-zcpp | ||
|
||
INSTALL ?= install | ||
OBJS=cpp1.o cpp2.o cpp3.o cpp4.o cpp5.o cpp6.o | ||
ifeq ($(OS),Windows_NT) | ||
EXE := .exe | ||
else | ||
EXE := $(EXESUFFIX) | ||
endif | ||
|
||
CC ?= gcc | ||
CFLAGS += -Wall -std=gnu11 -MMD \ | ||
-I../../ext/optparse \ | ||
-I../../ext/regex \ | ||
|
||
INSTALL ?= install | ||
|
||
SRCS := $(wildcard *.c) | ||
|
||
OBJS_ALL := $(SRCS:.c=.o) | ||
OBJS := $(OBJS_ALL:$(PROJ).o=) | ||
|
||
ifeq (Darwin,$(shell uname)) | ||
CFLAGS += -std=c89 | ||
DEPENDS := $(SRCS:.c=.d) $(T_SRCS:.c=.d) | ||
|
||
#------------------------------------------------------------------------------ | ||
.PHONY: all clean test install | ||
|
||
#------------------------------------------------------------------------------ | ||
define MAKE_EXE | ||
all: $(1)$(EXE) | ||
|
||
$(1)$(EXE): $(2) | ||
$(CC) $(CFLAGS) -o $(1)$(EXE) $(2) $(LDFLAGS) | ||
|
||
clean:: | ||
$(RM) $(1)$(EXE) $(2) | ||
|
||
test:: $(1)$(EXE) | ||
ifeq ($(3),1) | ||
./$(1)$(EXE) | ||
endif | ||
|
||
zcpp$(EXESUFFIX):$(OBJS) | ||
$(CC) $(LDFLAGS) -o zcpp$(EXESUFFIX) $(OBJS) | ||
valgrind:: $(1)$(EXE) | ||
$(VALGRIND) $(1)$(EXE) | ||
endef | ||
|
||
#------------------------------------------------------------------------------ | ||
$(eval $(call MAKE_EXE,$(PROJ),$(OBJS_ALL),0)) | ||
|
||
#------------------------------------------------------------------------------ | ||
test:: $(PROJ)$(EXE) | ||
perl -S prove t/*.t | ||
|
||
%.o: %.c cpp.h cppdef.h | ||
$(CC) $(CFLAGS) -c $< | ||
#------------------------------------------------------------------------------ | ||
clean:: | ||
$(RM) $(OBJS) $(DEPENDS) *.bak t/*.bak | ||
|
||
install: | ||
$(INSTALL) zcpp$(EXESUFFIX) $(PREFIX)/bin/$(EXEC_PREFIX)zcpp$(EXESUFFIX) | ||
#------------------------------------------------------------------------------ | ||
install: $(PROJ)$(EXE) | ||
$(INSTALL) $(PROJ)$(EXE) $(PREFIX)/bin/$(PROJ)$(EXE) | ||
|
||
clean: | ||
$(RM) *.o core *~ zcpp$(EXESUFFIX) | ||
$(RM) -rf Debug Release | ||
-include $(DEPENDS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,64 @@ | ||
#----------------------------------------------------------------------------- | ||
# ucpp - C99 preprocessor for sccz80 | ||
#----------------------------------------------------------------------------- | ||
PROJ := z88dk-ucpp | ||
|
||
INSTALL ?= install | ||
CFILES = mem.c nhash.c cpp.c lexer.c assert.c macro.c eval.c | ||
OBJS = $(CFILES:.c=.o) | ||
DEPENDS := $(OBJS:.o=.d) | ||
ifeq ($(OS),Windows_NT) | ||
EXE := .exe | ||
else | ||
EXE := $(EXESUFFIX) | ||
endif | ||
|
||
CC ?= gcc | ||
CFLAGS += -Wall -std=gnu11 -MMD \ | ||
-I../../ext/optparse \ | ||
-I../../ext/regex \ | ||
-DSTAND_ALONE -DUCPP_CONFIG | ||
|
||
INSTALL ?= install | ||
|
||
CFLAGS += -MMD -DSTAND_ALONE -DUCPP_CONFIG -O2 -Wall | ||
SRCS := mem.c nhash.c cpp.c lexer.c assert.c macro.c eval.c | ||
|
||
ucpp$(EXESUFFIX):$(OBJS) | ||
$(CC) $(LDFLAGS) -o ucpp$(EXESUFFIX) $(OBJS) | ||
OBJS_ALL := $(SRCS:.c=.o) | ||
OBJS := $(OBJS_ALL:$(PROJ).o=) | ||
|
||
DEPENDS := $(SRCS:.c=.d) $(T_SRCS:.c=.d) | ||
|
||
%.o: %.c | ||
$(CC) $(CFLAGS) -c $< | ||
#------------------------------------------------------------------------------ | ||
.PHONY: all clean test install | ||
|
||
install: | ||
$(INSTALL) ucpp$(EXESUFFIX) $(PREFIX)/bin/$(EXEC_PREFIX)ucpp$(EXESUFFIX) | ||
#------------------------------------------------------------------------------ | ||
define MAKE_EXE | ||
all: $(1)$(EXE) | ||
|
||
clean: | ||
$(RM) *.o core *~ ucpp$(EXESUFFIX) *.d | ||
$(RM) -rf Debug Release | ||
$(1)$(EXE): $(2) | ||
$(CC) $(CFLAGS) -o $(1)$(EXE) $(2) $(LDFLAGS) | ||
|
||
clean:: | ||
$(RM) $(1)$(EXE) $(2) | ||
|
||
test:: $(1)$(EXE) | ||
ifeq ($(3),1) | ||
./$(1)$(EXE) | ||
endif | ||
|
||
valgrind:: $(1)$(EXE) | ||
$(VALGRIND) $(1)$(EXE) | ||
endef | ||
|
||
#------------------------------------------------------------------------------ | ||
$(eval $(call MAKE_EXE,$(PROJ),$(OBJS_ALL),0)) | ||
|
||
#------------------------------------------------------------------------------ | ||
test:: $(PROJ)$(EXE) | ||
perl -S prove t/*.t | ||
|
||
#------------------------------------------------------------------------------ | ||
clean:: | ||
$(RM) $(OBJS) $(DEPENDS) *.bak t/*.bak | ||
|
||
#------------------------------------------------------------------------------ | ||
install: $(PROJ)$(EXE) | ||
$(INSTALL) $(PROJ)$(EXE) $(PREFIX)/bin/$(PROJ)$(EXE) | ||
|
||
-include $(DEPENDS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,63 @@ | ||
#----------------------------------------------------------------------------- | ||
# zpragma - Parse files and create zcc_opt.def | ||
#----------------------------------------------------------------------------- | ||
PROJ := z88dk-zpragma | ||
|
||
INSTALL ?= install | ||
ifeq ($(OS),Windows_NT) | ||
EXE := .exe | ||
else | ||
EXE := $(EXESUFFIX) | ||
endif | ||
|
||
OBJS = zpragma.o | ||
CC ?= gcc | ||
CFLAGS += -Wall -std=gnu11 -MMD \ | ||
-I../../ext/optparse \ | ||
-I../../ext/regex | ||
|
||
INSTALL ?= install | ||
|
||
all: zpragma$(EXESUFFIX) | ||
SRCS := $(wildcard *.c) | ||
|
||
zpragma$(EXESUFFIX): $(OBJS) | ||
$(CC) -o zpragma$(EXESUFFIX) $(LDFLAGS) $(OBJS) | ||
OBJS_ALL := $(SRCS:.c=.o) | ||
OBJS := $(OBJS_ALL:$(PROJ).o=) | ||
|
||
install: | ||
$(INSTALL) zpragma$(EXESUFFIX) $(PREFIX)/bin/$(EXEC_PREFIX)zpragma$(EXESUFFIX) | ||
DEPENDS := $(SRCS:.c=.d) $(T_SRCS:.c=.d) | ||
|
||
clean: | ||
$(RM) zpragma$(EXESUFFIX) zpragma.o core$(EXESUFFIX) | ||
$(RM) -rf Debug Release | ||
#------------------------------------------------------------------------------ | ||
.PHONY: all clean test install | ||
|
||
#------------------------------------------------------------------------------ | ||
define MAKE_EXE | ||
all: $(1)$(EXE) | ||
|
||
#Dependencies | ||
$(1)$(EXE): $(2) | ||
$(CC) $(CFLAGS) -o $(1)$(EXE) $(2) $(LDFLAGS) | ||
|
||
clean:: | ||
$(RM) $(1)$(EXE) $(2) | ||
|
||
zpragma.o: zpragma.c | ||
test:: $(1)$(EXE) | ||
ifeq ($(3),1) | ||
./$(1)$(EXE) | ||
endif | ||
|
||
valgrind:: $(1)$(EXE) | ||
$(VALGRIND) $(1)$(EXE) | ||
endef | ||
|
||
#------------------------------------------------------------------------------ | ||
$(eval $(call MAKE_EXE,$(PROJ),$(OBJS_ALL),0)) | ||
|
||
#------------------------------------------------------------------------------ | ||
test:: $(PROJ)$(EXE) | ||
perl -S prove t/*.t | ||
|
||
#------------------------------------------------------------------------------ | ||
clean:: | ||
$(RM) $(OBJS) $(DEPENDS) *.bak t/*.bak | ||
|
||
#------------------------------------------------------------------------------ | ||
install: $(PROJ)$(EXE) | ||
$(INSTALL) $(PROJ)$(EXE) $(PREFIX)/bin/$(PROJ)$(EXE) | ||
|
||
-include $(DEPENDS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.