Skip to content

Instantly share code, notes, and snippets.

@ryosan-470
Created January 20, 2015 05:15
Show Gist options
  • Save ryosan-470/c13add991ca7cc38fc53 to your computer and use it in GitHub Desktop.
Save ryosan-470/c13add991ca7cc38fc53 to your computer and use it in GitHub Desktop.
システムプログラム序論 課題10:Makefile

システムプログラミング序論

課題10用Makefile

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