Skip to content

Commit

Permalink
build: update
Browse files Browse the repository at this point in the history
  • Loading branch information
tshakalekholoane committed Jan 24, 2025
1 parent 0112230 commit f2b4fd3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ CFLAGS = -DCAN_BUILD="\"$(BUILD)\"" -O3 -Wall -Wextra -Wno-c++98-compat \
-Wno-poison-system-directories -Wno-vla -framework Foundation -march=native \
-pedantic -std=c23

.PHONY: all clean
bin/can: src/main.o
mkdir -p bin
$(CC) $(CFLAGS) src/main.o -o bin/can

all:
mkdir -p bin/
$(CC) $(CFLAGS) -o bin/can src/main.c
src/main.o:

.PHONY: clean
clean:
rm -rf bin/
-rm bin/can src/main.o
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
#define CAN_BUILD "TIP"
#endif

#define unlikely(c) __builtin_expect(!!(c), false)

#define shift(n) \
do { \
argc -= (n); \
argv += (n); \
} while (false)

#define unlikely(c) __builtin_expect(!!(c), false)

static const char* usage = "usage: can [-h | -V] [--] file ...";

// Objective-C messaging primitives require that functions be cast to an
Expand Down

0 comments on commit f2b4fd3

Please sign in to comment.