mirror of
https://github.com/ioacademy-jikim/debugging
synced 2026-08-11 16:32:58 +00:00
first commit
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <mylib.h>
|
||||
|
||||
int main (int arg, char *argv[])
|
||||
{
|
||||
foo();
|
||||
goo();
|
||||
return 0;
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,16 @@
|
||||
OBJS=main.o
|
||||
CC=cc
|
||||
INCLIB=../MYLIB
|
||||
LIBS=$(INCLIB)/mylib.a
|
||||
CFLAGS=-Wall -I. -I$(INCLIB)
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
app: $(OBJS) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o app $(OBJS) $(LIBS)
|
||||
|
||||
$(OBJS): $(INCLIB)/mylib.h
|
||||
|
||||
cleanall:
|
||||
-rm -f *.o app
|
||||
Reference in New Issue
Block a user