-
-
Save Akagi201/f44f86af5a0a7df527a1 to your computer and use it in GitHub Desktop.
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=gcc | |
| CCFLAGS=-Wall | |
| LDFLAGS= | |
| SOURCES=$(wildcard *.c) | |
| OBJECTS=$(SOURCES:.c=.o) | |
| TARGET=des | |
| all: $(TARGET) | |
| $(TARGET): $(OBJECTS) | |
| $(CC) $(LDFLAGS) -o $@ $^ | |
| %.o: %.c %.h | |
| $(CC) $(CCFLAGS) -c $< | |
| %.o: %.c | |
| $(CC) $(CCFLAGS) -c $< | |
| clean: | |
| rm -f *.o $(TARGET) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment