Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for .c files to ensure macro guards for wildcard #7817

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

dgarske
Copy link
Contributor

@dgarske dgarske commented Jul 31, 2024

Description

Fix for .c files to ensure macro guards for wildcard.

Testing

Makefile.testwildcard:

rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d))
SOURCES:=$(call rwildcard,certs,*.c) $(call rwildcard,ctaocrypt,*.c) $(call rwildcard,cyassl,*.c) $(call rwildcard,examples,*.c) $(call rwildcard,src,*.c) $(call rwildcard,wolfcrypt,*.c) $(call rwildcard,wolfssl,*.c) \
    $(call rwildcard,sslSniffer,*.c) $(call rwildcard,tests,*.c) $(call rwildcard,testsuite,*.c) $(call rwildcard,wrapper,*.c)
OBJECTS:= $(patsubst %.c, %.o, $(SOURCES))

.PHONY: all
all: $(OBJECTS)

%.o: %.c
	gcc -c -I. -DWOLFSSL_USER_SETTINGS -DHAVE_NETDB_H -o $@ $<
	@echo "CC	$<	-o $@"

clean:
	@rm -rf $(OBJECTS)

Run: make -f Makefile.testwildcard

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@dgarske dgarske assigned dgarske, wolfSSL-Bot and SparkiDev and unassigned dgarske Jul 31, 2024
@SparkiDev SparkiDev merged commit 1bc0853 into wolfSSL:master Jul 31, 2024
121 checks passed
@dgarske dgarske deleted the wildcard_c branch August 13, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants