mirror of
https://github.com/ioacademy-jikim/debugging
synced 2025-06-08 08:26:14 +00:00
16 lines
233 B
Makefile
16 lines
233 B
Makefile
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
|