mirror of
https://github.com/ioacademy-jikim/debugging
synced 2026-08-21 21:32:55 +00:00
first commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// foo.c
|
||||
#include <stdio.h>
|
||||
#include <mylib.h>
|
||||
|
||||
void foo()
|
||||
{
|
||||
printf("foo\n");
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
// goo.c
|
||||
#include <stdio.h>
|
||||
#include <mylib.h>
|
||||
|
||||
void goo()
|
||||
{
|
||||
printf("goo\n");
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,16 @@
|
||||
TLIB=mylib.a
|
||||
OBJS=foo.o goo.o
|
||||
CC=cc
|
||||
INCPATH=.
|
||||
CFLAGS=-Wall -I$(INCPATH)
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
$(TLIB): $(OBJS)
|
||||
ar cr $(TLIB) $(OBJS)
|
||||
|
||||
$(OBJS): $(INCPATH)/mylib.h
|
||||
|
||||
cleanall:
|
||||
-rm -f *.o *.a
|
||||
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
// mylib.h
|
||||
|
||||
void foo();
|
||||
void goo();
|
||||
Reference in New Issue
Block a user