[DEPRECATED] a makefile template

this page is deprecated

origin: cs.colby.edu

http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/

IDIR =../include
CC=gcc
CFLAGS=-I$(IDIR)

ODIR=obj
LDIR =../lib

LIBS=-lm

_DEPS = hellomake.h
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))

_OBJ = hellomake.o hellofunc.o 
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))


$(ODIR)/%.o: %.c $(DEPS)
    $(CC) -c -o $@ $< $(CFLAGS)

    hellomake: $(OBJ)
        $(CC) -o $@ $^ $(CFLAGS) $(LIBS)

        .PHONY: clean

        clean:
            rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~ 
edited 20.04.2024
created 04.08.2019
EOF
[+] click to leave a comment [+]
the comment system on this blog works via email. The button
below will generate a mailto: link based on this page's url 
and invoke your email client - please edit the comment there!

[optional] even better, encrypt the email with my public key

- don't modify the subject field
- specify a nickname, otherwise your comment will be shown as   
  anonymous
- your email address will not be disclosed
- you agree that the comment is to be made public.
- to take down a comment, send the request via email.

>> SEND COMMENT <<




mixtape via serocell - media feed April 16, 2024

2024-04-08 via mrshll.com April 8, 2024
The last time I experienced a major solar eclipse Alej, Q and I traveled down to Nashville to experience totality. It really was something. I remember first darkness, then cicadas and bats coming to life, then humans all around us hollering and applaudin…

[log] Painting Practice via Longest Voyage February 10, 2024
Trying to keep on the reading, writing, and painting focus for the year. I have a hard time right now doing extra hobbies during the week. I have been mentally drained from work to do much of anything afterwards. But I’ve gotten a tiny bit of painting don…

Generated by openring from webring