Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CC = gcc
- DD = g++
- CFLAGS = -g -Wall -c
- LDFLAGS = -g -Wall -L"."
- ALL = libsched.a test1 test_faq test_read test_klimek test_glon
- LIBS = -lsched -lrt
- all: $(ALL)
- queue.o: err.h queue.h queue.c
- $(CC) $(CFLAGS) queue.c
- err.o: err.h err.c
- $(CC) $(CFLAGS) err.c
- sched.o: sched.h sched.c queue.h err.h
- $(CC) $(CFLAGS) sched.c
- libsched.a: queue.o err.o sched.o
- ar rc libsched.a queue.o err.o sched.o
- test1: libsched.a test1.c
- $(CC) $(LDFLAGS) test1.c -o test1 $(LIBS)
- test_faq.o: sched.h test_faq.c
- $(CC) $(CFLAGS) test_faq.c
- test_faq: libsched.a test_faq.o
- $(CC) $(LDFLAGS) libsched.a test_faq.o -o test_faq $(LIBS)
- test_read.o: sched.h test_read.c
- $(CC) $(CFLAGS) test_read.c
- test_read: libsched.a test_read.o
- $(CC) $(LDFLAGS) libsched.a test_read.o -o test_read $(LIBS)
- test_glon.o: sched.h test_glon.c
- $(CC) $(CFLAGS) test_glon.c
- test_glon: libsched.a test_glon.o
- $(CC) $(LDFLAGS) libsched.a test_glon.o -o test_glon $(LIBS)
- test_klimek.o: sched.h test_klimek.cpp
- $(DD) $(CFLAGS) test_klimek.cpp
- test_klimek: libsched.a test_klimek.o
- $(DD) $(LDFLAGS) libsched.a test_klimek.o -o test_klimek $(LIBS)
- clean:
- rm -f *.o
- cleanall:
- rm -f *.o test1 test_faq test_read test_klimek test_glon libsched.a
Add Comment
Please, Sign In to add comment