課題10用Makefile
Created
January 20, 2015 05:15
-
-
Save ryosan-470/c13add991ca7cc38fc53 to your computer and use it in GitHub Desktop.
システムプログラム序論 課題10:Makefile
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
CC=gcc | |
CFLAGS=-m32 -Wall | |
ASFLAGS=-m32 -Wall | |
TARGET=q10-1 | |
OBJS=q10-1_main.o q10-1.o | |
$(TARGET): $(OBJS) | |
$(CC) $(CFLAGS) $(OBJS) -o $(TARGET) | |
.c.o: | |
$(CC) $(CFLAGS) -c $< | |
.s.o: | |
$(CC) $(ASFLAGS) -c $< | |
.PHONY: clean | |
clean: | |
$(RM) $(OBJS) $(TARGET) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment