Created
September 20, 2016 16:38
-
-
Save jfmherokiller/d4cf59776f3c5e3afb619028e05b80f0 to your computer and use it in GitHub Desktop.
wabbitsign Makefile
This file contains hidden or 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
| CC = $(CROSS_COMPILE)clang | |
| LD = $(CROSS_COMPILE)ld | |
| LDFLAGS += -lc -lm | |
| LDFLAGS += -lgmp -lcrypto | |
| export CFLAGS | |
| export LDFLAGS | |
| # Suffix Rules | |
| .SUFFIXES: .c | |
| .c.o: | |
| $(CC) $(CFLAGS) -c $< | |
| .c: | |
| $(CC) $(CFLAGS) $< -o $@ | |
| SRC = src/big.c src/wabbit.c | |
| OBJ = $(addsuffix .o, $(basename $(SRC))) | |
| OBJ_FILES = $(addsuffix .o, $(basename $(notdir $(SRC)))) | |
| wabbitsign: $(OBJ) Makefile | |
| $(CC) -o wabbitsign $(OBJ_FILES) $(LDFLAGS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment