3 Debian patches touch this file
-
-
Show actual compiler arguments.
-
Respect CPPFLAGS
- Origin
- vendor:
- Forwarded
- no
| 1 | BLUE =\033[20;36m |
| 2 | GREEN =\033[32m |
| 3 | RED =\033[31m |
| 4 | ESC =\033[0m |
| 5 | OK =[$(GREEN) Ok $(ESC)] |
| 6 | FAILED =[$(RED) failed $(ESC)] |
| 7 | |
| 8 | CC=g++ |
| 9 | |
| 10 | |
| 11 | |
| 12 | INCL= |
| 13 | LDFLAGS= |
| 14 | LIBS=-lgcrypt -lpthread |
| 15 | CFLAGS=-Wall -shared -fPIC -DPIC |
| 16 | |
| 17 | |
| 18 | PLUGIN=radiusplugin.so |
| 19 | |
| 20 | OBJECTS=\ |
| 21 | RadiusClass/RadiusAttribute.o \ |
| 22 | RadiusClass/RadiusPacket.o \ |
| 23 | RadiusClass/RadiusConfig.o \ |
| 24 | RadiusClass/RadiusServer.o \ |
| 25 | RadiusClass/RadiusVendorSpecificAttribute.o \ |
| 26 | AccountingProcess.o \ |
| 27 | Exception.o \ |
| 28 | PluginContext.o \ |
| 29 | UserAuth.o \ |
| 30 | AcctScheduler.o \ |
| 31 | IpcSocket.o \ |
| 32 | radiusplugin.o \ |
| 33 | User.o \ |
| 34 | AuthenticationProcess.o \ |
| 35 | main.o \ |
| 36 | UserAcct.o \ |
| 37 | UserPlugin.o \ |
| 38 | Config.o |
| 39 | |
| 40 | all: $(PLUGIN) |
| 41 | |
| 42 | $(PLUGIN): $(OBJECTS) |
| 43 | @echo -e 'BIN: $(GREEN) $(PLUGIN) $(ESC)' |
| 44 | @$(CC) $(CFLAGS) $(OBJECTS) -o $(PLUGIN) $(LDFLAGS) $(LIBS) |
| 45 | |
| 46 | %.o: %.cpp |
| 47 | @echo -e 'OBJ: $(GREEN) $@ $(ESC)' |
| 48 | @$(CC) $(INCL) $(CFLAGS) -o $@ -c $< |
| 49 | |
| 50 | test: $(OBJECTS) |
| 51 | @$(CC) -Wall $(OBJECTS) -o main $(LDFLAGS) $(LIBS) |
| 52 | |
| 53 | clean: |
| 54 | -rm $(PLUGIN) *.o */*.o |