Skip to content

Instantly share code, notes, and snippets.

@sirkha

sirkha/makefile Secret

Created October 13, 2017 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirkha/0856fa89fde65ee29e272e5ceeefb3fd to your computer and use it in GitHub Desktop.
Save sirkha/0856fa89fde65ee29e272e5ceeefb3fd to your computer and use it in GitHub Desktop.
splash2 lu makefile
TARGET = LU
OBJS = lu.o
CFLAGS = --static -O2 -w
LDFLAGS = -lm
MACROS = ../../../null_macros/c.m4.null
CC = gcc
x = *
$(TARGET): $(OBJS)
$(CC) $(OBJS) $(CFLAGS) -o $(TARGET) $(LDFLAGS)
.SUFFIXES:
.SUFFIXES: .o .c .C .h .H
.H.h:
m4 ${MACROS} $*.H > $*.h
.C.c:
m4 $(MACROS) $*.C > $*.c
.c.o:
$(CC) -c $(CFLAGS) $*.c
.C.o:
m4 $(MACROS) $*.C > $*.c
$(CC) -c $(CFLAGS) $*.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment